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
10
/// Continue ( Do | For | While )
12
public class ContinueStatement : Statement
14
public static readonly Role<VBTokenNode> ContinueKindTokenRole = new Role<VBTokenNode>("ContinueKindToken");
16
public ContinueKind ContinueKind { get; set; }
18
public VBTokenNode ContinueToken {
19
get { return GetChildByRole (Roles.Keyword); }
22
public VBTokenNode ContinueKindToken {
23
get { return GetChildByRole (ContinueKindTokenRole); }
26
public ContinueStatement(ContinueKind kind)
28
this.ContinueKind = kind;
31
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
33
return visitor.VisitContinueStatement(this, data);
36
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
38
ContinueStatement o = other as ContinueStatement;
39
return o != null && this.ContinueKind == o.ContinueKind;
43
public enum ContinueKind