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;
 }
示例#2
0
 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;
 }
示例#3
0
 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));
        }
示例#5
0
 public static Switch Switch(NRefactory.SwitchStatement switchStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new Switch(switchStatement, scope, visitor));
 }
示例#6
0
 void IAstVisitor.VisitSwitchStatement(SwitchStatement switchStatement)
 {
     Visit(EnterSwitchStatement, LeaveSwitchStatement, switchStatement);
 }
 public virtual S VisitSwitchStatement(SwitchStatement switchStatement, T data)
 {
     throw new NotImplementedException();
 }
示例#8
0
 public override AstExpression VisitSwitchStatement(NRefactory.SwitchStatement switchStatement, IScope scope)
 {
     return(AstExpression.Switch(switchStatement, scope, this));
 }