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 IfElseStatement : Statement
11
public static readonly Role<Statement> FalseStatementRole = new Role<Statement>("False", Ast.Statement.Null);
12
public static readonly Role<Statement> TrueStatementRole = new Role<Statement>("True", Ast.Statement.Null);
14
public Expression Condition {
15
get { return GetChildByRole(Roles.Condition); }
16
set { SetChildByRole(Roles.Condition, value); }
19
public Statement Body {
20
get { return GetChildByRole(TrueStatementRole); }
21
set { SetChildByRole(TrueStatementRole, value); }
24
public Statement ElseBlock {
25
get { return GetChildByRole(FalseStatementRole); }
26
set { SetChildByRole(FalseStatementRole, value); }
29
public override S AcceptVisitor<T, S> (IAstVisitor<T, S> visitor, T data)
31
return visitor.VisitIfElseStatement(this, data);
34
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
36
throw new NotImplementedException();