protected internal Switch(NRefactory.SwitchStatement switchStatement, IScope scope, INRefcatoryExpressionVisitor visitor) : base(scope, visitor) { _switchStatement = switchStatement; SwitchValue = switchStatement.Expression.AcceptVisitor(Visitor, scope); BuildSwitchCases(); InternalType = TypeSystem.Void; }
public virtual S VisitSwitchStatement(SwitchStatement switchStatement, T data) { return(VisitChildren(switchStatement, data)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { SwitchStatement o = other as SwitchStatement; return(o != null && this.Expression.DoMatch(o.Expression, match) && this.SwitchSections.DoMatch(o.SwitchSections, match)); }
public static Switch Switch(NRefactory.SwitchStatement switchStatement, IScope scope, INRefcatoryExpressionVisitor visitor) { return(new Switch(switchStatement, scope, visitor)); }
void IAstVisitor.VisitSwitchStatement(SwitchStatement switchStatement) { Visit(EnterSwitchStatement, LeaveSwitchStatement, switchStatement); }
public virtual S VisitSwitchStatement(SwitchStatement switchStatement, T data) { throw new NotImplementedException(); }
public override AstExpression VisitSwitchStatement(NRefactory.SwitchStatement switchStatement, IScope scope) { return(AstExpression.Switch(switchStatement, scope, this)); }