Home | History | Annotate | Download | only in parsing

Lines Matching full:scope_

55       scope_(nullptr) {}
203 FunctionState function_state(&function_state_, &scope_, function_scope,
212 VariableProxy* this_function_proxy = scope_->NewUnresolved(
221 VariableProxy* arguments_proxy = scope_->NewUnresolved(
225 VariableProxy* new_target_proxy = scope_->NewUnresolved(
855 DCHECK(scope_ == NULL);
865 Scope* scope = NewScope(scope_, SCRIPT_SCOPE);
892 FunctionState function_state(&function_state_, &scope_, scope,
897 scope_
923 CheckConflictingVarDeclarations(scope_, &ok);
939 ast_value_factory()->empty_string(), scope_, body,
998 DCHECK(scope_ == NULL);
1014 Scope* scope = NewScope(scope_, SCRIPT_SCOPE);
1025 FunctionState function_state(&function_state_, &scope_, scope,
1041 NewScope(scope_, FUNCTION_SCOPE, FunctionKind::kArrowFunction);
1060 BlockState block_state(&scope_, scope);
1148 if (is_strong(language_mode()) && scope_->is_function_scope() &&
1195 if (is_sloppy(scope_->language_mode())) {
1210 if (!scope_->HasSimpleParameters()) {
1227 if (scope_->is_eval_scope()) mode_ = PARSE_EAGERLY;
1235 scope_->SetAsmModule();
1266 scope_->set_class_declaration_group_start(-1);
1273 if (scope_->class_declaration_group_start() < 0) {
1274 scope_->set_class_declaration_group_start(
1323 DCHECK(scope_->is_module_scope());
1334 ModuleDescriptor* descriptor = scope_->module();
1337 if (scope_->LookupLocal(it.local_name()) == NULL) {
1348 scope_->module()->Freeze();
1452 factory()->NewImportDeclaration(proxy, import_name, NULL, scope_, pos);
1488 scope_->module()->AddModuleRequest(module_specifier, zone());
1500 proxy, ast_value_factory()->default_string(), NULL, scope_, pos);
1531 scope_->module()->AddModuleRequest(module_specifier, zone());
1590 scope_->module()->AddLocalExport(default_string, names.first(), zone(), ok);
1626 scope_->module()->AddModuleRequest(module_specifier, zone());
1627 // TODO(ES6): scope_->module()->AddStarExport(...)
1665 scope_->module()->AddLocalExport(export_names[i], local_names[i],
1675 scope_->module()->AddModuleRequest(indirect_export_module_specifier,
1678 // TODO(ES6): scope_->module()->AddIndirectExport(...);(
1705 ModuleDescriptor* descriptor = scope_->module();
1884 IsLexicalVariableMode(mode) ? scope_ : scope_->DeclarationScope();
1899 if (scope == nullptr) scope = scope_;
2077 scope_->DeclarationScope()->ForceEagerCompilation();
2084 factory()->NewVariableDeclaration(proxy, VAR, scope_, pos);
2128 !scope_->is_declaration_scope()
2133 factory()->NewFunctionDeclaration(proxy, mode, fun, scope_, pos);
2138 !scope_->is_declaration_scope()) {
2140 factory()->NewSloppyBlockFunctionStatement(empty, scope_);
2141 scope_->DeclarationScope()->sloppy_block_function_map()->Declare(name,
2182 proxy, mode, scope_, pos, is_class_declaration,
2183 scope_->class_declaration_group_start());
2223 Scope* block_scope = NewScope(scope_, BLOCK_SCOPE);
2228 { BlockState block_state(&scope_, block_scope);
2347 parsing_result->descriptor.scope = scope_;
2572 scope_->RemoveUnresolved(var);
2712 return_value = ThisExpression(scope_, factory(), loc.beg_pos);
2739 Variable* temp = scope_->NewTemporary(
2767 is_undefined, ThisExpression(scope_, factory(), pos),
2785 Scope* decl_scope = scope_->DeclarationScope();
2813 scope_->DeclarationScope()->RecordWithStatement();
2814 Scope* with_scope = NewScope(scope_, WITH_SCOPE);
2816 { BlockState block_state(&scope_, with_scope);
2822 Scope* block_scope = NewScope(scope_, BLOCK_SCOPE);
2825 BlockState block_state(&scope_, block_scope);
2904 scope_->NewTemporary(ast_value_factory()->dot_switch_tag_string());
2923 Scope* cases_scope = NewScope(scope_, BLOCK_SCOPE);
2931 BlockState cases_block_state(&scope_, cases_scope);
3009 catch_scope = NewScope(scope_, CATCH_SCOPE);
3020 scope_->RemoveUnresolved(proxy);
3030 BlockState block_state(&scope_, catch_scope);
3036 Scope* block_scope = NewScope(scope_, BLOCK_SCOPE);
3040 BlockState block_state(&scope_, block_scope);
3047 descriptor.scope = scope_;
3211 Variable* iterator = scope_->NewTemporary(
3213 Variable* result = scope_->NewTemporary(
3260 this, assign_each->AsAssignment(), scope_);
3272 scope_->NewTemporary(ast_value_factory()->empty_string());
3277 scope_);
3334 Scope* for_scope = scope_;
3349 Variable* temp = scope_->NewTemporary(temp_name);
3362 first = scope_->NewTemporary(temp_name);
3389 scope_ = inner_scope;
3402 proxy, mode, scope_, RelocInfo::kNoPosition);
3441 Variable* flag = scope_->NewTemporary(temp_name);
3530 scope_ = for_scope;
3548 Scope* saved_scope = scope_;
3549 Scope* for_scope = NewScope(scope_, BLOCK_SCOPE);
3550 scope_ = for_scope;
3604 VariableProxy* single_var = scope_->NewUnresolved(
3633 Variable* temp = scope_->NewTemporary(
3643 Scope* body_scope = NewScope(scope_, BLOCK_SCOPE);
3645 scope_ = body_scope;
3673 scope_ = for_scope;
3693 tdz_proxy, LET, scope_, RelocInfo::kNoPosition);
3700 scope_ = saved_scope;
3766 scope_ = body_scope;
3773 scope_ = saved_scope;
3811 scope_ = inner_scope;
3831 scope_ = for_scope;
3835 scope_ = saved_scope;
3838 scope_ = saved_scope;
3989 parser_->scope_->RemoveUnresolved(expr->AsVariableProxy());
3999 parser_->scope_, parameters->scope);
4017 scope_->NewTemporary(ast_value_factory()->dot_result_string());
4125 Scope* declaration_scope = scope_->DeclarationScope();
4133 : NewScope(scope_, FUNCTION_SCOPE, kind);
4148 FunctionState function_state(&function_state_, &scope_, scope, kind,
4150 scope_->SetScopeName(function_name);
4156 scope_->ForceContextAllocation();
4161 Variable* temp = scope_->NewTemporary(
4168 scope_->set_start_position(start_position);
4214 scope_->AllowsLazyParsing() &&
4367 scope_->set_end_position(entry.end_pos());
4372 total_preparse_skipped_ += scope_->end_position() - function_block_pos;
4375 SetLanguageMode(scope_, entry.language_mode());
4376 if (entry.uses_super_property()) scope_->RecordSuperPropertyUsage();
4377 if (entry.calls_eval()) scope_->RecordEvalCall();
4403 scope_->set_end_position(logger.end());
4408 total_preparse_skipped_ += scope_->end_position() - function_block_pos;
4411 SetLanguageMode(scope_, logger.language_mode());
4413 scope_->RecordSuperPropertyUsage();
4416 scope_->RecordEvalCall();
4423 *expected_property_count, scope_->language_mode(),
4424 scope_->uses_super_property(), scope_->calls_eval());
4461 scope_(scope) {}
4470 scope_);
4475 Scope* scope_;
4488 DCHECK(scope_->is_function_scope());
4497 descriptor.scope = scope_;
4517 RewriteParameterInitializer(parameter.initializer, scope_);
4531 Scope* param_scope = scope_;
4533 if (!parameter.is_simple() && scope_->calls_sloppy_eval()) {
4534 param_scope = NewScope(scope_, BLOCK_SCOPE);
4541 descriptor.hoist_scope = scope_;
4545 BlockState block_state(&scope_, param_scope);
4552 if (!parameter.is_simple() && scope_->calls_sloppy_eval()) {
4586 Scope* inner_scope = scope_;
4589 inner_scope = NewScope(scope_, BLOCK_SCOPE);
4598 BlockState block_state(&scope_, inner_scope);
4634 this->ThisExpression(scope_, factory(), RelocInfo::kNoPosition),
4641 scope_->set_end_position(scanner()->location().end_pos);
4646 SetLanguageMode(scope_, inner_scope->language_mode());
4669 Variable(scope_, function_name, fvar_mode, Variable::NORMAL,
4673 proxy, fvar_mode, scope_, RelocInfo::kNoPosition);
4674 scope_->DeclareFunctionVar(fvar_declaration);
4715 language_mode(), function_state_->kind(), scope_->has_simple_parameters(),
4746 Scope* block_scope = NewScope(scope_, BLOCK_SCOPE);
4747 BlockState block_state(&scope_, block_scope);
4749 scope_->SetScopeName(name);
4757 scope_->class_declaration_group_start());
4851 scope_->DeclarationScope()->ForceEagerCompilation();
5345 ThisExpression(scope_, factory(), RelocInfo::kNoPosition);
5350 scope_->NewTemporary(ast_value_factory()->empty_string());
5397 SetLanguageMode(scope_,
5398 static_cast<LanguageMode>(scope_->language_mode() | mode));
5482 Parser::DestructuringAssignment(expr, parser_->scope_));