Home
last modified time | relevance | path

Searched refs:InsertBinding (Results 1 - 8 of 8) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.cpp142 Scope::InsertResult Scope::InsertBinding(const util::StringView &name, Variable *const var) in InsertBinding() function in ark::es2panda::varbinder::Scope
266 return scope->InsertBinding(newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)).first->second; in AddLocalVar()
394 InsertBinding(newDecl->Name(), param); in AddParam()
436 if (!functionScope_->InsertBinding(name, nameVar_).second) { in BindName()
461 return InsertBinding(newDecl->Name(), allocator->New<EnumVariable>(newDecl, false)).first->second; in AddBinding()
470 var = InsertBinding(newDecl->Name(), interfaceVar).first->second; in AddBinding()
476 var = InsertBinding(newDecl->Name(), classVar).first->second; in AddBinding()
508 return InsertBinding(newDecl->Name(), allocator->New<EnumVariable>(newDecl, false)).first->second; in AddBinding()
522 Scope::InsertResult GlobalScope::InsertBinding(const util::StringView &name, Variable *const var) in InsertBinding() function in ark::es2panda::varbinder::GlobalScope
570 const auto insRes = Scope::InsertBinding(nam in InsertImpl()
[all...]
H A Dscope.h245 virtual InsertResult InsertBinding(const util::StringView &name, Variable *var);
876 InsertResult InsertBinding(const util::StringView &name, Variable *var) override;
953 return InsertBinding(newDecl->Name(), allocator->New<T>(newDecl, VariableFlags::HOIST_VAR)).first->second; in AddVar()
978 return InsertBinding(newDecl->Name(), allocator->New<T>(newDecl, flags)).first->second; in AddFunction()
1002 return InsertBinding(newDecl->Name(), allocator->New<T>(newDecl, flags)).first->second; in AddTSBinding()
1012 return InsertBinding(newDecl->Name(), allocator->New<T>(newDecl, VariableFlags::NONE)).first->second; in AddLexical()
H A Dvarbinder.cpp179 (*scope)->InsertBinding(argumentsVariable->Name(), argumentsVariable); in InstantiateArgumentsImpl()
654 scope_->AsFunctionParamScope()->GetFunctionScope()->InsertBinding(decl->Name(), param); in AddMandatoryParam()
655 scope_->InsertBinding(decl->Name(), param); in AddMandatoryParam()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DboxingForLocals.cpp155 scope->InsertBinding(newVar->Name(), newVar); in HandleFunctionParam()
206 scope->InsertBinding(newVar->Name(), newVar); in HandleVariableDeclarator()
H A DlambdaLowering.cpp120 newScope->InsertBinding(newTypeParamId->Name(), newTypeParamVar); in CloneTypeParams()
387 funcScope->InsertBinding(name, nv); in CreateCalleeMethod()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DutilityTypeHandlers.cpp126 VarBinder()->Program()->GlobalScope()->InsertBinding(partialClassDef->Ident()->Name(), in HandlePartialType()
293 classDeclProgram->GlobalScope()->InsertBinding(name, var); in CreateClassPrototype()
H A Dfunction.cpp1903 implFuncScope->InsertBinding(decl->Name(), var); in CreateAsyncProxy()
2041 funcScope->InsertBinding(var->Name(), var); in TransformTraillingLambda()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DscopesInitPhase.cpp1282 VarBinder()->TopScope()->InsertBinding(ident->Name(), ident->Variable()); in AddGlobalDeclaration()

Completed in 19 milliseconds