Home
last modified time | relevance | path

Searched refs:restType (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/es2panda/typescript/core/
H A Dfunction.cpp281 Type *restType = allocator_->New<ArrayType>(GlobalAnyType()); in CheckFunctionRestParameter() local
282 CHECK_NOT_NULL(restType); in CheckFunctionRestParameter()
286 restType = typeAnnotation->AsTypeNode()->GetType(this); in CheckFunctionRestParameter()
287 if (!restType->IsArrayType()) { in CheckFunctionRestParameter()
297 restIdent->Variable()->SetTsType(restType->AsArrayType()->ElementType()); in CheckFunctionRestParameter()
305 destructuringContext.SetInferedType(restType); in CheckFunctionRestParameter()
314 destructuringContext.SetInferedType(restType); in CheckFunctionRestParameter()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
H A Dfunction.cpp262 Type *restType = Allocator()->New<ArrayType>(GlobalAnyType()); in CheckFunctionRestParameter() local
266 restType = typeAnnotation->GetType(this); in CheckFunctionRestParameter()
267 if (!restType->IsArrayType()) { in CheckFunctionRestParameter()
276 restIdent->Variable()->SetTsType(restType->AsArrayType()->ElementType()); in CheckFunctionRestParameter()
284 destructuringContext.SetInferredType(restType); in CheckFunctionRestParameter()
293 destructuringContext.SetInferredType(restType); in CheckFunctionRestParameter()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DETSCompiler.cpp242 auto restType = expr->GetSignature()->RestVar()->TsType()->AsETSArrayType(); in ConvertRestArguments() local
243 arrayExpression->SetTsType(restType); in ConvertRestArguments()
244 arrayExpression->SetPreferredType(restType->ElementType()); in ConvertRestArguments()
690 auto restType = signature->RestVar()->TsType()->AsETSArrayType(); in ConvertRestArguments() local
691 arrayExpression->SetTsType(restType); in ConvertRestArguments()
692 arrayExpression->SetPreferredType(restType->ElementType()); in ConvertRestArguments()
711 auto *restType = signature->RestVar()->TsType(); in ConvertArgumentsForFunctionalCall() local
712 ASSERT(restType->IsETSArrayType()); in ConvertArgumentsForFunctionalCall()
713 paramType = restType->AsETSArrayType()->ElementType(); in ConvertArgumentsForFunctionalCall()

Completed in 6 milliseconds