Searched refs:paramVar (Results 1 – 3 of 3) sorted by relevance
85 [[maybe_unused]] binder::Variable *paramVar = ref.Variable(); in CompileFunctionParameterDeclaration() local89 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()
125 binder::Variable *paramVar = param->Variable(); in CheckFunctionIdentifierParameter() local133 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() local212 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 …]
282 auto *paramVar = allocator->New<LocalVariable>(varDecl, VariableFlags::VAR); in AddParamDecl() local283 bindings_.insert({varDecl->Name(), paramVar}); in AddParamDecl()