Table of Contents

Class WhileStatement

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

"while (Condition) EmbeddedStatement"

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

Constructors

WhileStatement()

public WhileStatement()

WhileStatement(Expression, Statement)

public WhileStatement(Expression condition, Statement embeddedStatement)

Parameters

condition Expression
embeddedStatement Statement

Fields

WhileKeywordRole

public static readonly TokenRole WhileKeywordRole

Field Value

TokenRole

Properties

Condition

public Expression Condition { get; set; }

Property Value

Expression

EmbeddedStatement

public Statement EmbeddedStatement { get; set; }

Property Value

Statement

LParToken

public CSharpTokenNode LParToken { get; }

Property Value

CSharpTokenNode

RParToken

public CSharpTokenNode RParToken { get; }

Property Value

CSharpTokenNode

WhileToken

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