/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. using System;
  4. using System.IO;
  5. namespace ICSharpCode.NRefactory.VB.Ast
  6. {
  7. public class WhileStatement : Statement
  8. {
  9. public Expression Condition {
  10. get { return GetChildByRole(Roles.Expression); }
  11. set { SetChildByRole(Roles.Expression, value); }
  12. }
  13. public BlockStatement Body {
  14. get { return GetChildByRole(Roles.Body); }
  15. set { SetChildByRole(Roles.Body, value); }
  16. }
  17. protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
  18. {
  19. throw new NotImplementedException();
  20. }
  21. public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
  22. {
  23. return visitor.VisitWhileStatement(this, data);
  24. }
  25. }
  26. }