public override sealed object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     this.BeginVisit(expressionRangeVariable);
     object result = this.TrackedVisitExpressionRangeVariable(expressionRangeVariable, data);
     this.EndVisit(expressionRangeVariable);
     return result;
 }
 public virtual object TrackedVisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     return base.VisitExpressionRangeVariable(expressionRangeVariable, data);
 }
 public virtual object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     Debug.Assert((expressionRangeVariable != null));
     Debug.Assert((expressionRangeVariable.Expression != null));
     Debug.Assert((expressionRangeVariable.Type != null));
     expressionRangeVariable.Expression.AcceptVisitor(this, data);
     return expressionRangeVariable.Type.AcceptVisitor(this, data);
 }
 public virtual object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     throw new global::System.NotImplementedException("ExpressionRangeVariable");
 }
Esempio n. 5
0
        void ExpressionRangeVariableDeclaration(out ExpressionRangeVariable variable)
        {
            variable = new ExpressionRangeVariable();
            variable.StartLocation = la.Location;
            Expression rhs = null;
            TypeReference typeName = null;

            if (IsIdentifiedExpressionRange()) {
            Identifier();
            variable.Identifier = t.val;
            if (la.kind == 63) {
                Get();
                TypeName(out typeName);
                variable.Type = typeName;
            }
            Expect(20);
            }
            Expr(out rhs);
            variable.Expression = rhs;
            variable.EndLocation = t.EndLocation;
        }
 public virtual object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     Debug.Assert((expressionRangeVariable != null));
     Debug.Assert((expressionRangeVariable.Expression != null));
     Debug.Assert((expressionRangeVariable.Type != null));
     nodeStack.Push(expressionRangeVariable.Expression);
     expressionRangeVariable.Expression.AcceptVisitor(this, data);
     expressionRangeVariable.Expression = ((Expression)(nodeStack.Pop()));
     nodeStack.Push(expressionRangeVariable.Type);
     expressionRangeVariable.Type.AcceptVisitor(this, data);
     expressionRangeVariable.Type = ((TypeReference)(nodeStack.Pop()));
     return null;
 }