Class DoWhileStatement
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
"do EmbeddedStatement while(Condition);"
public class DoWhileStatement : Statement, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
DoWhileStatement
- Implements
- Inherited Members
- Extension Methods
Constructors
DoWhileStatement()
public DoWhileStatement()
DoWhileStatement(Expression, Statement)
public DoWhileStatement(Expression condition, Statement embeddedStatement)
Parameters
condition
ExpressionembeddedStatement
Statement
Fields
DoKeywordRole
public static readonly TokenRole DoKeywordRole
Field Value
WhileKeywordRole
public static readonly TokenRole WhileKeywordRole
Field Value
Properties
Condition
public Expression Condition { get; set; }
Property Value
DoToken
public CSharpTokenNode DoToken { get; }
Property Value
EmbeddedStatement
public Statement EmbeddedStatement { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
SemicolonToken
public CSharpTokenNode SemicolonToken { 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)