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
CondLPar
public static readonly TokenRole CondLPar
Field Value
CondRPar
public static readonly TokenRole CondRPar
Field Value
ConditionRole
public static readonly Role<Expression> ConditionRole
Field Value
Null
public static readonly CatchClause Null
Field Value
WhenKeywordRole
public static readonly TokenRole WhenKeywordRole
Field Value
Properties
Body
public BlockStatement Body { get; set; }
Property Value
CatchToken
public CSharpTokenNode CatchToken { get; }
Property Value
CondLParToken
public CSharpTokenNode CondLParToken { get; }
Property Value
CondRParToken
public CSharpTokenNode CondRParToken { get; }
Property Value
Condition
public Expression Condition { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
NodeType
public override NodeType NodeType { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
Type
public AstType Type { get; set; }
Property Value
VariableName
public string VariableName { get; set; }
Property Value
VariableNameToken
public Identifier VariableNameToken { get; set; }
Property Value
WhenToken
public CSharpTokenNode WhenToken { get; }
Property Value
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
Returns
Operators
implicit operator CatchClause(Pattern)
public static implicit operator CatchClause(Pattern pattern)
Parameters
pattern
Pattern