Table of Contents

Class CatchClause

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

catch (Type VariableName) { Body }

public class CatchClause : AstNode, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
CatchClause
Implements
Inherited Members
Extension Methods

Constructors

CatchClause()

public CatchClause()

Fields

CatchKeywordRole

public static readonly TokenRole CatchKeywordRole

Field Value

TokenRole

CondLPar

public static readonly TokenRole CondLPar

Field Value

TokenRole

CondRPar

public static readonly TokenRole CondRPar

Field Value

TokenRole

ConditionRole

public static readonly Role<Expression> ConditionRole

Field Value

Role<Expression>

Null

public static readonly CatchClause Null

Field Value

CatchClause

WhenKeywordRole

public static readonly TokenRole WhenKeywordRole

Field Value

TokenRole

Properties

Body

public BlockStatement Body { get; set; }

Property Value

BlockStatement

CatchToken

public CSharpTokenNode CatchToken { get; }

Property Value

CSharpTokenNode

CondLParToken

public CSharpTokenNode CondLParToken { get; }

Property Value

CSharpTokenNode

CondRParToken

public CSharpTokenNode CondRParToken { get; }

Property Value

CSharpTokenNode

Condition

public Expression Condition { get; set; }

Property Value

Expression

LParToken

public CSharpTokenNode LParToken { get; }

Property Value

CSharpTokenNode

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

RParToken

public CSharpTokenNode RParToken { get; }

Property Value

CSharpTokenNode

Type

public AstType Type { get; set; }

Property Value

AstType

VariableName

public string VariableName { get; set; }

Property Value

string

VariableNameToken

public Identifier VariableNameToken { get; set; }

Property Value

Identifier

WhenToken

public CSharpTokenNode WhenToken { get; }

Property Value

CSharpTokenNode

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool

Operators

implicit operator CatchClause(Pattern)

public static implicit operator CatchClause(Pattern pattern)

Parameters

pattern Pattern

Returns

CatchClause