Lines Matching refs:scope
316 void set_scope(Scope* scope) {}
471 void set_scope(Scope* scope) {}
497 // A PreParserBlock extends statement with a place to store the scope.
498 // The scope is dropped as the block is returned as a statement.
501 void set_scope(Scope* scope) { scope_ = scope; }
502 Scope* scope() const { return scope_; }
678 const PreParserIdentifier& name, Scope* scope,
746 PreParserStatement NewWithStatement(Scope* scope,
811 explicit PreParserFormalParameters(DeclarationScope* scope)
812 : FormalParametersBase(scope) {}
1046 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) {
1047 scope->SetLanguageMode(mode);
1061 RewriteSwitchStatement(PreParserStatement switch_statement, Scope* scope) {
1067 Scope* scope, bool* was_added, int position) {
1068 return DeclareVariableName(name, mode, scope, was_added, position, kind);
1072 VariableMode mode, Scope* scope, bool* was_added,
1074 Variable* var = DeclareVariableName(proxy->raw_name(), mode, scope,
1081 ClassScope* scope, VariableMode mode,
1085 return scope->DeclarePrivateName(name, mode, is_static_flag, was_added);
1089 Scope* scope, bool* was_added,
1093 Variable* var = scope->DeclareVariableName(name, mode, was_added, kind);
1096 if (!IsLexicalVariableMode(mode)) scope = scope->GetDeclarationScope();
1097 var = scope->LookupLocal(name);
1098 } else if (var->scope() != scope) {
1102 factory()->ast_node_factory()->NewNestedVariableDeclaration(scope,
1105 var->scope()->declarations()->Add(nested_declaration);
1115 Scope* scope) {
1144 DCHECK_EQ(function_scope, scope());
1166 Variable* var = DeclareVariableName(variable_name.string_, mode, scope(),
1186 DeclareVariableName(variable_name.string_, VariableMode::kLet, scope(),
1190 V8_INLINE void DeclareClassVariable(ClassScope* scope,
1197 scope->DeclareClassVariable(ast_value_factory(), name.string_,
1204 V8_INLINE void DeclarePublicClassField(ClassScope* scope,
1213 VariableMode::kConst, scope, &was_added);
1218 ClassScope* scope, const PreParserIdentifier& property_name,
1224 property_name.string_, scope, GetVariableMode(kind),
1240 RewriteClassLiteral(ClassScope* scope, const PreParserIdentifier& name,
1408 DeclareVariableName(name, VariableMode::kLet, scope(), &was_added);
1436 V8_INLINE void InsertSloppyBlockFunctionVarBindings(DeclarationScope* scope) {
1437 scope->HoistSloppyBlockFunctions(nullptr);
1545 scope()->NewUnresolved(factory()->ast_node_factory(),
1548 scope()->NewUnresolved(factory()->ast_node_factory(),
1590 Scope* scope, const PreParserIdentifier& identifier) {
1591 return scope->DeclareCatchVariableName(identifier.string_);
1622 DeclarationScope* scope = parameters->scope;
1623 scope->RecordParameter(is_rest);
1629 if (!parameters->is_simple) parameters->scope->SetHasNonSimpleParameters();