Home
last modified time | relevance | path

Searched refs:paramVar (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/es2panda/compiler/core/
Dfunction.cpp85 [[maybe_unused]] binder::Variable *paramVar = ref.Variable(); in CompileFunctionParameterDeclaration() local
89 paramVar = pg->Scope()->FindLocal(name, binder::ResolveBindingOptions::BINDINGS); in CompileFunctionParameterDeclaration()
92 ASSERT(paramVar && paramVar->IsLocalVariable()); in CompileFunctionParameterDeclaration()
95 ASSERT(paramVar->LexicalBound() || paramVar->AsLocalVariable()->Vreg() == paramReg); in CompileFunctionParameterDeclaration()
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp125 binder::Variable *paramVar = param->Variable(); in CheckFunctionIdentifierParameter() local
133 paramVar->AddFlag(binder::VariableFlags::OPTIONAL); in CheckFunctionIdentifierParameter()
137 paramVar->SetTsType(param->TypeAnnotation()->AsTypeNode()->GetType(this)); in CheckFunctionIdentifierParameter()
138 return {paramVar->AsLocalVariable(), nullptr, isOptional}; in CheckFunctionIdentifierParameter()
211 binder::Variable *paramVar = paramIdent->Variable(); in CheckFunctionAssignmentPatternParameter() local
212 ASSERT(paramVar); in CheckFunctionAssignmentPatternParameter()
217 paramVar->SetTsType(paramType); in CheckFunctionAssignmentPatternParameter()
219 return {paramVar->AsLocalVariable(), nullptr, true}; in CheckFunctionAssignmentPatternParameter()
222 paramVar->SetTsType(GetBaseTypeOfLiteralType(param->Right()->Check(this))); in CheckFunctionAssignmentPatternParameter()
223 paramVar->AddFlag(binder::VariableFlags::OPTIONAL); in CheckFunctionAssignmentPatternParameter()
[all …]
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.cpp282 auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR); in AddParamDecl() local
283 bindings_.insert({varDecl->Name(), paramVar}); in AddParamDecl()