Lines Matching defs:funcScope
290 auto *funcScope = scriptFunc->Scope();
294 funcScope->BindName(name);
295 funcScope->BindInternalName(BuildFunctionName(name, idx));
494 void VarBinder::AddCompilableFunctionScope(varbinder::FunctionScope *funcScope)
496 functionScopes_.push_back(funcScope);
501 auto *funcScope = func->Scope();
503 ASSERT(funcScope != nullptr);
504 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope());
521 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope);
660 void VarBinder::LookUpMandatoryReferences(const FunctionScope *funcScope, bool needLexicalFuncObj)
665 if (funcScope->HasFlag(ScopeFlags::USE_ARGS)) {
679 [[maybe_unused]] auto *funcScope = *iter++;
681 ASSERT(funcScope->IsGlobalScope() || funcScope->IsModuleScope());
693 funcScope = *iter++;
694 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope);
696 LookUpMandatoryReferences(funcScope, false);
700 funcScope = *iter;
701 const auto *scriptFunc = funcScope->Node()->AsScriptFunction();
703 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope);
714 funcScope->HasFlag(ScopeFlags::USE_SUPER)) {
723 LookUpMandatoryReferences(funcScope, lexicalFunctionObject);