Inheritance: ICSharpCode.NRefactory.Ast.AbstractNode, INullable
Beispiel #1
0
	void ExpressionRangeVariableDeclaration(
//#line  2530 "VBNET.ATG" 
out ExpressionRangeVariable variable) {

//#line  2532 "VBNET.ATG" 
		variable = new ExpressionRangeVariable();
		variable.StartLocation = la.Location;
		Expression rhs = null;
		TypeReference typeName = null;
		
		if (
//#line  2538 "VBNET.ATG" 
IsIdentifiedExpressionRange()) {
			Identifier();

//#line  2539 "VBNET.ATG" 
			variable.Identifier = t.val; 
			if (la.kind == 63) {
				lexer.NextToken();
				TypeName(
//#line  2541 "VBNET.ATG" 
out typeName);

//#line  2542 "VBNET.ATG" 
				variable.Type = typeName; 
			}
			Expect(20);
		}
		Expr(
//#line  2546 "VBNET.ATG" 
out rhs);

//#line  2548 "VBNET.ATG" 
		variable.Expression = rhs;
		variable.EndLocation = t.EndLocation;
		
	}
		public sealed override object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data) {
			this.BeginVisit(expressionRangeVariable);
			object result = this.TrackedVisitExpressionRangeVariable(expressionRangeVariable, data);
			this.EndVisit(expressionRangeVariable);
			return result;
		}
 public override object TrackedVisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     return null;
 }
		public virtual object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data) {
			throw new global::System.NotImplementedException("ExpressionRangeVariable");
		}
		public virtual object TrackedVisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data) {
			return base.VisitExpressionRangeVariable(expressionRangeVariable, data);
		}
		public object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
		{
			AddError(expressionRangeVariable, "ExpressionRangeVariable is not supported.");
			return null;
		}
Beispiel #7
0
	void ExpressionRangeVariableDeclaration(
#line  2233 "VBNET.ATG" 
out ExpressionRangeVariable variable) {

#line  2235 "VBNET.ATG" 
		variable = new ExpressionRangeVariable();
		variable.StartLocation = la.Location;
		Expression rhs = null;
		TypeReference typeName = null;
		
		if (
#line  2241 "VBNET.ATG" 
IsIdentifiedExpressionRange()) {
			Identifier();

#line  2242 "VBNET.ATG" 
			variable.Identifier = t.val; 
			if (la.kind == 50) {
				lexer.NextToken();
				TypeName(
#line  2244 "VBNET.ATG" 
out typeName);

#line  2245 "VBNET.ATG" 
				variable.Type = typeName; 
			}
			Expect(10);
		}
		Expr(
#line  2249 "VBNET.ATG" 
out rhs);

#line  2251 "VBNET.ATG" 
		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;
		}
Beispiel #9
0
 public virtual object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data) {
     throw CreateException(expressionRangeVariable);
 }
Beispiel #10
0
 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 object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
 {
     throw new NotImplementedException ();
 }
 public virtual bool VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object d)
 {
     if ((expressionRangeVariable == null)) {
         return SetFailure();
     }
     if ((d == null)) {
         return SetFailure();
     }
     if ((expressionRangeVariable.Expression == null)) {
         return SetFailure();
     }
     if ((expressionRangeVariable.Type == null)) {
         return SetFailure();
     }
     if(expressionRangeVariable.GetType() != d.GetType()) {return SetFailure();}
     var data = (ExpressionRangeVariable)d;
     if (!IsMatch(expressionRangeVariable, data)) {
         return SetFailure();
     }
     expressionRangeVariable.Expression.AcceptVisitor(this, data.Expression);
     return expressionRangeVariable.Type.AcceptVisitor(this, data.Type);
 }
		public override object VisitExpressionRangeVariable(ExpressionRangeVariable expressionRangeVariable, object data)
		{
			return base.VisitExpressionRangeVariable(expressionRangeVariable, data);
		}
 private bool IsMatch(ExpressionRangeVariable left, ExpressionRangeVariable data)
 {
     return false;
 }