Table of Contents

Class BlockStatement

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

{ Statements }

public class BlockStatement : Statement, IAnnotatable, IFreezable, INode, ICloneable, IEnumerable<Statement>, IEnumerable
Inheritance
BlockStatement
Implements
Inherited Members
Extension Methods

Constructors

BlockStatement()

public BlockStatement()

Fields

Null

public static readonly BlockStatement Null

Field Value

BlockStatement

StatementRole

public static readonly Role<Statement> StatementRole

Field Value

Role<Statement>

Properties

LBraceToken

public CSharpTokenNode LBraceToken { get; }

Property Value

CSharpTokenNode

RBraceToken

public CSharpTokenNode RBraceToken { get; }

Property Value

CSharpTokenNode

Statements

public AstNodeCollection<Statement> Statements { get; }

Property Value

AstNodeCollection<Statement>

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

Add(Expression)

public void Add(Expression expression)

Parameters

expression Expression

Add(Statement)

public void Add(Statement statement)

Parameters

statement Statement

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool

Operators

implicit operator BlockStatement(Pattern)

public static implicit operator BlockStatement(Pattern pattern)

Parameters

pattern Pattern

Returns

BlockStatement