Home | History | Annotate | Download | only in parsing

Lines Matching refs:NEW

341     Scope* result = new (zone())
2105 // constructors. We define a new property whenever there is an
2507 // ('new')+ MemberExpression
2510 // 'new' '.' 'target'
2512 // The grammar for new expressions is pretty warped. We can have several 'new'
2515 // 'new' to create a NewExpression with arguments. However, a NewExpression
2518 // Examples of new expression:
2519 // new foo.bar().baz means (new (foo.bar)()).baz
2520 // new foo()() means (new foo())()
2521 // new new foo()() means (new (new foo())())
2522 // new new foo means new (new foo)
2523 // new new foo() means new (new foo())
2524 // new new foo().bar().baz means (new (new foo()).bar()).baz
2526 if (peek() == Token::NEW) {
2529 Consume(Token::NEW);
2562 // No 'new' or 'super' keyword.
2777 // new super() is never allowed.