Table of Contents

Class TryCatchStatement

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

try TryBlock CatchClauses finally FinallyBlock

public class TryCatchStatement : Statement, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
TryCatchStatement
Implements
Inherited Members
Extension Methods

Constructors

TryCatchStatement()

public TryCatchStatement()

Fields

CatchClauseRole

public static readonly Role<CatchClause> CatchClauseRole

Field Value

Role<CatchClause>

FinallyBlockRole

public static readonly Role<BlockStatement> FinallyBlockRole

Field Value

Role<BlockStatement>

FinallyKeywordRole

public static readonly TokenRole FinallyKeywordRole

Field Value

TokenRole

TryBlockRole

public static readonly Role<BlockStatement> TryBlockRole

Field Value

Role<BlockStatement>

TryKeywordRole

public static readonly TokenRole TryKeywordRole

Field Value

TokenRole

Properties

CatchClauses

public AstNodeCollection<CatchClause> CatchClauses { get; }

Property Value

AstNodeCollection<CatchClause>

FinallyBlock

public BlockStatement FinallyBlock { get; set; }

Property Value

BlockStatement

FinallyToken

public CSharpTokenNode FinallyToken { get; }

Property Value

CSharpTokenNode

TryBlock

public BlockStatement TryBlock { get; set; }

Property Value

BlockStatement

TryToken

public CSharpTokenNode TryToken { 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