PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/NRefactory/ICSharpCode.NRefactory.VB/Ast/Statements/ForStatement.cs

http://github.com/icsharpcode/ILSpy
C# | 45 lines | 35 code | 8 blank | 2 comment | 0 complexity | 7d7e358f5cb59ce2a13972cd3b1f639d MD5 | raw file
 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)
 3
 4using System;
 5using System.IO;
 6
 7namespace ICSharpCode.NRefactory.VB.Ast
 8{
 9	public class ForStatement : Statement
10	{
11		public static readonly Role<AstNode> VariableRole = new Role<AstNode>("Variable", AstNode.Null);
12		public static readonly Role<Expression> ToExpressionRole = new Role<Expression>("ToExpression", Expression.Null);
13		public static readonly Role<Expression> StepExpressionRole = new Role<Expression>("StepExpression", Expression.Null);
14		
15		public AstNode Variable {
16			get { return GetChildByRole(VariableRole); }
17			set { SetChildByRole(VariableRole, value); }
18		}
19		
20		public Expression ToExpression {
21			get { return GetChildByRole(ToExpressionRole); }
22			set { SetChildByRole(ToExpressionRole, value); }
23		}
24		
25		public Expression StepExpression {
26			get { return GetChildByRole(StepExpressionRole); }
27			set { SetChildByRole(StepExpressionRole, value); }
28		}
29		
30		public BlockStatement Body {
31			get { return GetChildByRole(Roles.Body); }
32			set { SetChildByRole(Roles.Body, value); }
33		}
34		
35		protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
36		{
37			throw new NotImplementedException();
38		}
39		
40		public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
41		{
42			return visitor.VisitForStatement(this, data);
43		}
44	}
45}