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
ExpressionembeddedStatement
Statement
Fields
WhileKeywordRole
public static readonly TokenRole WhileKeywordRole
Field Value
Properties
Condition
public Expression Condition { get; set; }
Property Value
EmbeddedStatement
public Statement EmbeddedStatement { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
WhileToken
public CSharpTokenNode WhileToken { 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)