Class ForeachStatement
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
foreach (Type VariableName in InExpression) EmbeddedStatement
public class ForeachStatement : Statement, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
ForeachStatement
- Implements
- Inherited Members
- Extension Methods
Constructors
ForeachStatement()
public ForeachStatement()
Fields
AwaitRole
public static readonly TokenRole AwaitRole
Field Value
ForeachKeywordRole
public static readonly TokenRole ForeachKeywordRole
Field Value
InKeywordRole
public static readonly TokenRole InKeywordRole
Field Value
Properties
AwaitToken
public CSharpTokenNode AwaitToken { get; }
Property Value
EmbeddedStatement
public Statement EmbeddedStatement { get; set; }
Property Value
ForeachToken
public CSharpTokenNode ForeachToken { get; }
Property Value
InExpression
public Expression InExpression { get; set; }
Property Value
InToken
public CSharpTokenNode InToken { get; }
Property Value
IsAsync
public bool IsAsync { get; set; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
VariableDesignation
public VariableDesignation VariableDesignation { get; set; }
Property Value
VariableType
public AstType VariableType { get; set; }
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)