Lines Matching defs:scope
21 #include "varbinder/scope.h"
163 res.variable->SetLexical(res.scope);
166 bool VarBinder::InstantiateArgumentsImpl(Scope **scope, Scope *iter, const ir::AstNode *node)
172 (*scope)->AddDecl<ConstDecl, LocalVariable>(Allocator(), FUNCTION_ARGUMENTS, VariableFlags::INITIALIZED);
178 *scope = iter->AsFunctionParamScope()->GetFunctionScope();
179 (*scope)->InsertBinding(argumentsVariable->Name(), argumentsVariable);
182 (*scope)->AddFlag(ScopeFlags::USE_ARGS);
190 Scope *scope = iter->IsFunctionParamScope() ? iter : iter->EnclosingVariableScope();
192 const auto *node = scope->Node();
194 if (scope->IsLoopScope()) {
195 iter = scope->Parent();
203 if (InstantiateArgumentsImpl(&scope, iter, node)) {
207 iter = scope->Parent();
216 VariableScope *scope = iter->IsFunctionParamScope() ? iter->AsFunctionParamScope()->GetFunctionScope()
219 scope->AddFlag(ScopeFlags::NO_REG_STORE);
229 auto *scope = classDef->Scope();
230 Variable *variable = scope->FindLocal(classDef->PrivateId(), varbinder::ResolveBindingOptions::BINDINGS);
237 variable->SetLexical(scope);
265 res.variable->SetLexical(res.scope);