1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
7
namespace ICSharpCode.NRefactory.VB.Ast
9
public class ForEachStatement : Statement
11
public static readonly Role<AstNode> VariableRole = new Role<AstNode>("Variable", AstNode.Null);
13
public AstNode Variable {
14
get { return GetChildByRole(VariableRole); }
15
set { SetChildByRole(VariableRole, value); }
18
public Expression InExpression {
19
get { return GetChildByRole(Roles.Expression); }
20
set { SetChildByRole(Roles.Expression, value); }
23
public BlockStatement Body {
24
get { return GetChildByRole(Roles.Body); }
25
set { SetChildByRole(Roles.Body, value); }
28
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
30
throw new NotImplementedException();
33
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
35
return visitor.VisitForEachStatement(this, data);