Home | History | Annotate | Download | only in src

Lines Matching refs:Declaration

722         : FunctionLiteral::DECLARATION;
1244 // Create new block with one expected declaration.
1255 Declaration* declaration =
1257 Declare(declaration, true, CHECK_OK);
1444 // Generate a separate declaration for each identifier.
1445 // TODO(ES6): once we implement destructuring, make that one declaration.
1466 Declaration* declaration =
1468 Declare(declaration, true, CHECK_OK);
1537 // ExportDeclaration* declaration =
1539 // top_scope_->AddDeclaration(declaration);
1675 // Common language extension is to allow function declaration in place
1702 // If we are inside a function, a declaration of a var/const variable is a
1712 void Parser::Declare(Declaration* declaration, bool resolve, bool* ok) {
1713 VariableProxy* proxy = declaration->proxy();
1715 VariableMode mode = declaration->mode();
1720 // variable and also set its mode. In any case, a Declaration node
1721 // will be added to the scope so that the declaration can be added
1733 declaration->AsModuleDeclaration() != NULL) {
1739 name, mode, declaration->initialization(), proxy->interface());
1750 // because the var declaration is hoisted to the function scope where 'x'
1780 // We add a declaration node for every declaration. The compiler
1791 // WARNING: This will lead to multiple declaration nodes for the
1796 declaration_scope->AddDeclaration(declaration);
1812 // to a lookup variable to force a dynamic declaration using the
1820 declaration->initialization());
1878 // declaration is resolved by looking up the function through a
1895 // Make sure that the function containing the native declaration
1925 Declaration* declaration =
1927 Declare(declaration, true, CHECK_OK);
1947 FunctionLiteral::DECLARATION,
1954 Declaration* declaration =
1956 Declare(declaration, true, CHECK_OK);
2043 // If the variable declaration declares exactly one non-const
2069 // bindings are created uninitialized by their declaration nodes and
2071 // immediately by their declaration nodes.
2141 // transform a source-level var/const declaration into a (Function)
2142 // Scope declaration, and rewrite the source-level initialization into an
2151 // Create new block with one expected declaration.
2176 // an initial value in the declaration (because they are initialized upon
2179 // If we have a const declaration, in an inner scope, the proxy is always
2184 // declaration.
2186 Declaration* declaration =
2188 Declare(declaration, mode != VAR, CHECK_OK);
2199 // declaration of the form:
2209 // declaration (e.g., if we are inside a 'with' statement or 'catch'
2213 // declaration of the form:
2255 // way. When the script containing the global variable declaration
2262 // *not* touched until the variable declaration statement is
2265 // Executing the variable declaration statement will always
2270 // declaration statement has been executed. This is important in
2352 // If there was a single non-const declaration, return it in the output
2410 // If we have an extension, we allow a native function declaration.
2411 // A native function declaration starts with "native function" with
2869 // Parsed for-in loop w/ variable/const declaration.
2921 // Parsed for-in loop w/ let declaration.
4396 Scope* scope = (type == FunctionLiteral::DECLARATION && !is_extended_mode())
4455 // declaration to the body of the function with the name of the
4878 Declaration* decl = scope->CheckConflictingVarDeclarations();