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

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

http://github.com/icsharpcode/ILSpy
C# | 31 lines | 24 code | 5 blank | 2 comment | 0 complexity | 809be571fa93bb601276413611834264 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 WhileStatement : Statement
10	{
11		public Expression Condition {
12			get { return GetChildByRole(Roles.Expression); }
13			set { SetChildByRole(Roles.Expression, value); }
14		}
15		
16		public BlockStatement Body {
17			get { return GetChildByRole(Roles.Body); }
18			set { SetChildByRole(Roles.Body, value); }
19		}
20		
21		protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
22		{
23			throw new NotImplementedException();
24		}
25		
26		public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
27		{
28			return visitor.VisitWhileStatement(this, data);
29		}
30	}
31}