Home | History | Annotate | Download | only in parsing

Lines Matching refs:NEW

323       return new (zone) Scope(zone, parent, BLOCK_SCOPE);
683 return new (zone()) DeclarationScope(zone(), ast_value_factory());
687 return new (zone()) DeclarationScope(zone(), scope(), BLOCK_SCOPE);
691 return new (zone()) ModuleScope(parent, ast_value_factory());
695 return new (zone()) DeclarationScope(zone(), parent, EVAL_SCOPE);
712 return new (zone()) Scope(zone(), parent, scope_type);
718 new (zone()) DeclarationScope(zone(), scope(), FUNCTION_SCOPE, kind);
1123 // This method wraps the parsing of the expression inside a new expression
1130 // new expression classifier; it uses the top-level classifier instead.
2752 // constructors. We define a new property whenever there is an
3174 // ('new')+ MemberExpression
3177 // 'new' '.' 'target'
3179 // The grammar for new expressions is pretty warped. We can have several 'new'
3182 // 'new' to create a NewExpression with arguments. However, a NewExpression
3185 // Examples of new expression:
3186 // new foo.bar().baz means (new (foo.bar)()).baz
3187 // new foo()() means (new foo())()
3188 // new new foo()() means (new (new foo())())
3189 // new new foo means new (new foo)
3190 // new new foo() means new (new foo())
3191 // new new foo().bar().baz means (new (new foo()).bar()).baz
3193 if (peek() == Token::NEW) {
3196 Consume(Token::NEW);
3226 // No 'new' or 'super' keyword.
3311 // new super() is never allowed.
3344 ExpectMetaProperty(CStrVector("target"), "new.target", pos, CHECK_OK);
5340 // for loop must be parsed in a new scope.