Lines Matching full:scope
21 #include "varbinder/scope.h"
163 res.variable->SetLexical(res.scope); in LookupReference()
166 bool VarBinder::InstantiateArgumentsImpl(Scope **scope, Scope *iter, const ir::AstNode *node) in InstantiateArgumentsImpl() argument
172 …(*scope)->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIA… in InstantiateArgumentsImpl()
178 *scope = iter->AsFunctionParamScope()->GetFunctionScope(); in InstantiateArgumentsImpl()
179 (*scope)->InsertBinding(argumentsVariable->Name(), argumentsVariable); in InstantiateArgumentsImpl()
182 (*scope)->AddFlag(ScopeFlags::USE_ARGS); in InstantiateArgumentsImpl()
190 Scope *scope = iter->IsFunctionParamScope() ? iter : iter->EnclosingVariableScope(); in InstantiateArguments() local
192 const auto *node = scope->Node(); in InstantiateArguments()
194 if (scope->IsLoopScope()) { in InstantiateArguments()
195 iter = scope->Parent(); in InstantiateArguments()
203 if (InstantiateArgumentsImpl(&scope, iter, node)) { in InstantiateArguments()
207 iter = scope->Parent(); in InstantiateArguments()
216 …VariableScope *scope = iter->IsFunctionParamScope() ? iter->AsFunctionParamScope()->GetFunctionSco… in PropagateDirectEval() local
219 scope->AddFlag(ScopeFlags::NO_REG_STORE); in PropagateDirectEval()
229 auto *scope = classDef->Scope(); in InstantiatePrivateContext() local
230 …Variable *variable = scope->FindLocal(classDef->PrivateId(), varbinder::ResolveBindingOptions::BIN… in InstantiatePrivateContext()
237 variable->SetLexical(scope); in InstantiatePrivateContext()
265 res.variable->SetLexical(res.scope); in LookupIdentReference()
290 auto *funcScope = scriptFunc->Scope(); in BuildInternalName()
373 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, ctor->Scope()); in BuildClassProperty()
401 auto scopeCtx = LexicalScope<LocalScope>::Enter(this, classDef->Scope()); in BuildClassDefinition()
423 auto *loopScope = forUpdateStmt->Scope(); in BuildForUpdateLoop()
463 …auto paramScopeCtx = LexicalScope<CatchParamScope>::Enter(this, catchClauseStmt->Scope()->ParamSco… in BuildCatchClause()
467 auto scopeCtx = LexicalScope<CatchScope>::Enter(this, catchClauseStmt->Scope()); in BuildCatchClause()
474 … auto typeAliasScope = LexicalScope<LocalScope>::Enter(this, typeAliasDecl->TypeParams()->Scope()); in BuildTypeAliasDeclaration()
490 AddCompilableFunctionScope(func->Scope()); in AddCompilableFunction()
500 auto *funcScope = func->Scope(); in VisitScriptFunction()
530 auto typeParamScopeCtx = LexicalScope<Scope>::Enter(this, func->TypeParams()->Scope()); in VisitScriptFunctionWithPotentialTypeParams()
571 … auto scopeCtx = LexicalScope<Scope>::Enter(this, childNode->AsBlockStatement()->Scope()); in ResolveReference()
577 … auto scopeCtx = LexicalScope<Scope>::Enter(this, childNode->AsBlockExpression()->Scope()); in ResolveReference()
583 … auto scopeCtx = LexicalScope<LocalScope>::Enter(this, childNode->AsSwitchStatement()->Scope()); in ResolveReference()
592 auto loopScopeCtx = LexicalScope<LoopScope>::Enter(this, doWhileStatement->Scope()); in ResolveReference()
603 auto loopScopeCtx = LexicalScope<LoopScope>::Enter(this, whileStatement->Scope()); in ResolveReference()
614 … BuildForInOfLoop(forInStmt->Scope(), forInStmt->Left(), forInStmt->Right(), forInStmt->Body()); in ResolveReference()
620 … BuildForInOfLoop(forOfStmt->Scope(), forOfStmt->Left(), forOfStmt->Right(), forOfStmt->Body()); in ResolveReference()
714 ASSERT(ctor->Scope()->HasFlag(ScopeFlags::INNER_ARROW)); in AddMandatoryParams()
715 ctor->Scope()->AddFlag(ScopeFlags::SET_LEXICAL_FUNCTION); in AddMandatoryParams()