Lines Matching defs:funcScope
374 void Binder::BuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func)
376 if (funcScope->InFunctionScopes()) {
379 functionScopes_.push_back(funcScope);
380 funcScope->SetInFunctionScopes();
382 funcScope->SetSelfScopeName(name);
384 funcScope->BindNameWithScopeInfo(name, util::UString(recordName, Allocator()).View());
386 anonymousFunctionNames_[func] = util::UString(funcScope->InternalName().Mutf8(), Allocator()).View();
389 LegacyBuildFunction(funcScope, name, func);
393 void Binder::LegacyBuildFunction(FunctionScope *funcScope, util::StringView name, const ir::ScriptFunction *func)
402 funcScope->BindName(name, util::UString(internalName, Allocator()).View());
432 funcScope->BindName(name, util::UString(internalNameStr, Allocator()).View());
441 auto *funcScope = scriptFunc->Scope();
442 funcScope->ParamScope()->SetParent(outerScope);
781 auto *funcScope = scriptFunc->Scope();
790 auto paramScopeCtx = LexicalScope<FunctionParamScope>::Enter(this, funcScope->ParamScope());
816 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope);
971 [[maybe_unused]] auto *funcScope = *iter++;
973 ASSERT(funcScope->IsGlobalScope() || funcScope->IsModuleScope());
982 funcScope = *iter;
983 const auto *scriptFunc = funcScope->Node()->AsScriptFunction();
985 auto scopeCtx = LexicalScope<FunctionScope>::Enter(this, funcScope);
996 funcScope->HasFlag(VariableScopeFlags::USE_SUPER)) {
1008 if (funcScope->HasFlag(VariableScopeFlags::USE_ARGS)) {