public virtual void PostWalk(NewExpr node) { }
// NewExpr public virtual bool Walk(NewExpr node) { return true; }
public override void PostWalk(NewExpr node) { }
// NewExpr public override bool Walk(NewExpr node) { return false; }
private Expr ParseCallOrNewExpr() { int start; Expr ret; if (PeekToken(TokenType.KeywordNew)) { start = GetStart(); CallExpr call = ParseCall(ParseMemberExpr()); if (call == null) return null; ret = new NewExpr(call.Target, call.Args.ToArray()); ret.SetLoc(_globalParent, start, GetEnd()); } else { ret = ParsePrimaryExpr(); if (ret == null) return ret; } return ParseCallOrMemberTail(ret); }
// NewExpr public override bool Walk(NewExpr node) { node.Parent = _currentScope; return base.Walk(node); }