void WithStatement( #line 2740 "VBNET.ATG" out Statement withStatement) { #line 2742 "VBNET.ATG" Statement blockStmt = null; Expression expr = null; Expect(182); #line 2745 "VBNET.ATG" Location start = t.Location; Expr( #line 2746 "VBNET.ATG" out expr); EndOfStmt(); #line 2748 "VBNET.ATG" withStatement = new WithStatement(expr); withStatement.StartLocation = start; Block( #line 2751 "VBNET.ATG" out blockStmt); #line 2753 "VBNET.ATG" ((WithStatement)withStatement).Body = (BlockStatement)blockStmt; Expect(88); Expect(182); #line 2756 "VBNET.ATG" withStatement.EndLocation = t.Location; }
public override object VisitWithStatement(WithStatement withStatement, object data) { withStatements.Add(withStatement); return base.VisitWithStatement(withStatement, data); }
public override object VisitWithStatement(WithStatement withStatement, object data) { withStatement.Body.AcceptVisitor(new ReplaceWithAccessTransformer(withStatement.Expression), data); base.VisitWithStatement(withStatement, data); ReplaceCurrentNode(withStatement.Body); return null; }
public override object VisitWithStatement(WithStatement withStatement, object data) { // do not visit the body of the WithStatement return withStatement.Expression.AcceptVisitor(this, data); }
public override object TrackedVisitWithStatement(WithStatement withStatement, object data) { return null; }
public object VisitWithStatement(WithStatement withStatement, object data) { return CreateMacro(withStatement, "with", withStatement.Body, withStatement.Expression); }
public virtual object VisitWithStatement(WithStatement withStatement, object data) { Debug.Assert((withStatement != null)); Debug.Assert((withStatement.Expression != null)); Debug.Assert((withStatement.Body != null)); withStatement.Expression.AcceptVisitor(this, data); return withStatement.Body.AcceptVisitor(this, data); }
public virtual object TrackedVisitWithStatement(WithStatement withStatement, object data) { return base.VisitWithStatement(withStatement, data); }
public override object VisitWithStatement(WithStatement withStatement, object data) { // skip any nested with statement var block = withStatement.Body; withStatement.Body = BlockStatement.Null; base.VisitWithStatement(withStatement, data); withStatement.Body = block; return null; }
public object VisitWithStatement(WithStatement withStatement, object data) { throw new NotImplementedException (); }
public override object VisitWithStatement(WithStatement withStatement, object data) { withStatementCount++; string varName = "_with" + withStatementCount; WithConvertVisitor converter = new WithConvertVisitor(varName); LocalVariableDeclaration withVariable = new LocalVariableDeclaration(new VariableDeclaration(varName, withStatement.Expression, new TypeReference("var", true))); withStatement.Body.AcceptVisitor(converter, null); base.VisitWithStatement(withStatement, data); var statements = withStatement.Body.Children; statements.Insert(0, withVariable); withVariable.Parent = withStatement.Body; statements.Reverse(); foreach (var stmt in statements) { InsertAfterSibling(withStatement, stmt); } RemoveCurrentNode(); return null; }
public virtual bool VisitWithStatement(WithStatement withStatement, object d) { if ((withStatement == null)) { return SetFailure(); } if ((d == null)) { return SetFailure(); } if ((withStatement.Expression == null)) { return SetFailure(); } if ((withStatement.Body == null)) { return SetFailure(); } if(withStatement.GetType() != d.GetType()) {return SetFailure();} var data = (WithStatement)d; if (!IsMatch(withStatement, data)) { return SetFailure(); } withStatement.Expression.AcceptVisitor(this, data.Expression); return withStatement.Body.AcceptVisitor(this, data.Body); }
private bool IsMatch(WithStatement left, WithStatement data) { return false; }
void WithStatement( #line 3225 "VBNET.ATG" out Statement withStatement) { #line 3227 "VBNET.ATG" Statement blockStmt = null; Expression expr = null; Expect(218); #line 3230 "VBNET.ATG" Location start = t.Location; Expr( #line 3231 "VBNET.ATG" out expr); EndOfStmt(); #line 3233 "VBNET.ATG" withStatement = new WithStatement(expr); withStatement.StartLocation = start; Block( #line 3236 "VBNET.ATG" out blockStmt); #line 3238 "VBNET.ATG" ((WithStatement)withStatement).Body = (BlockStatement)blockStmt; Expect(100); Expect(218); #line 3241 "VBNET.ATG" withStatement.EndLocation = t.Location; }
public virtual object VisitWithStatement(WithStatement withStatement, object data) { Debug.Assert((withStatement != null)); Debug.Assert((withStatement.Expression != null)); Debug.Assert((withStatement.Body != null)); nodeStack.Push(withStatement.Expression); withStatement.Expression.AcceptVisitor(this, data); withStatement.Expression = ((Expression)(nodeStack.Pop())); nodeStack.Push(withStatement.Body); withStatement.Body.AcceptVisitor(this, data); withStatement.Body = ((BlockStatement)(nodeStack.Pop())); return null; }
public virtual object VisitWithStatement(WithStatement withStatement, object data) { throw new global::System.NotImplementedException("WithStatement"); }
public virtual object VisitWithStatement(WithStatement withStatement, object data) { throw CreateException(withStatement); }
public sealed override object VisitWithStatement(WithStatement withStatement, object data) { this.BeginVisit(withStatement); object result = this.TrackedVisitWithStatement(withStatement, data); this.EndVisit(withStatement); return result; }
void WithStatement( #line 3577 "VBNET.ATG" out Statement withStatement) { #line 3579 "VBNET.ATG" Statement blockStmt = null; Expression expr = null; Expect(236); #line 3582 "VBNET.ATG" Location start = t.Location; Expr( #line 3583 "VBNET.ATG" out expr); EndOfStmt(); #line 3585 "VBNET.ATG" withStatement = new WithStatement(expr); withStatement.StartLocation = start; Block( #line 3588 "VBNET.ATG" out blockStmt); #line 3590 "VBNET.ATG" ((WithStatement)withStatement).Body = (BlockStatement)blockStmt; Expect(115); Expect(236); #line 3593 "VBNET.ATG" withStatement.EndLocation = t.Location; }
void WithStatement( //#line 3569 "VBNET.ATG" out Statement withStatement) { //#line 3571 "VBNET.ATG" Statement blockStmt = null; Expression expr = null; Expect(233); //#line 3574 "VBNET.ATG" Location start = t.Location; Expr( //#line 3575 "VBNET.ATG" out expr); EndOfStmt(); //#line 3577 "VBNET.ATG" withStatement = new WithStatement(expr); withStatement.StartLocation = start; Block( //#line 3580 "VBNET.ATG" out blockStmt); //#line 3582 "VBNET.ATG" ((WithStatement)withStatement).Body = (BlockStatement)blockStmt; Expect(113); Expect(233); //#line 3585 "VBNET.ATG" withStatement.EndLocation = t.Location; }
void WithStatement( #line 3464 "VBNET.ATG" out Statement withStatement) { #line 3466 "VBNET.ATG" Statement blockStmt = null; Expression expr = null; Expect(233); #line 3469 "VBNET.ATG" Location start = t.Location; Expr( #line 3470 "VBNET.ATG" out expr); EndOfStmt(); #line 3472 "VBNET.ATG" withStatement = new WithStatement(expr); withStatement.StartLocation = start; Block( #line 3475 "VBNET.ATG" out blockStmt); #line 3477 "VBNET.ATG" ((WithStatement)withStatement).Body = (BlockStatement)blockStmt; Expect(113); Expect(233); #line 3480 "VBNET.ATG" withStatement.EndLocation = t.Location; }