Home
last modified time | relevance | path

Searched refs:arrayPattern (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp125 Type *Checker::CreateParameterTypeForArrayAssignmentPattern(const ir::ArrayExpression *arrayPattern in CreateParameterTypeForArrayAssignmentPattern() argument
134 if (inferedTuple->FixedLength() > arrayPattern->Elements().size()) { in CreateParameterTypeForArrayAssignmentPattern()
141 …for (uint32_t index = inferedTuple->FixedLength(); index < arrayPattern->Elements().size(); index+… in CreateParameterTypeForArrayAssignmentPattern()
220 const ir::ArrayExpression *arrayPattern = param->Left()->AsArrayPattern(); in CheckFunctionAssignmentPatternParameter() local
222 …ArrayDestructuringContext(this, arrayPattern, false, true, arrayPattern->TypeAnnotation(), param->… in CheckFunctionAssignmentPatternParameter()
224 … paramType = CreateParameterTypeForArrayAssignmentPattern(arrayPattern, context.InferedType()); in CheckFunctionAssignmentPatternParameter()
/arkcompiler/ets_frontend/ets2panda/checker/ts/
Dfunction.cpp139 Type *TSChecker::CreateParameterTypeForArrayAssignmentPattern(ir::ArrayExpression *arrayPattern, Ty… in CreateParameterTypeForArrayAssignmentPattern() argument
148 if (inferredTuple->FixedLength() > arrayPattern->Elements().size()) { in CreateParameterTypeForArrayAssignmentPattern()
156 …for (uint32_t index = inferredTuple->FixedLength(); index < arrayPattern->Elements().size(); index… in CreateParameterTypeForArrayAssignmentPattern()
234 ir::ArrayExpression *arrayPattern = param->Left()->AsArrayPattern(); in CheckFunctionAssignmentPatternParameter() local
236 {this, arrayPattern, false, true, arrayPattern->TypeAnnotation(), param->Right()}); in CheckFunctionAssignmentPatternParameter()
238 … paramType = CreateParameterTypeForArrayAssignmentPattern(arrayPattern, context.InferredType()); in CheckFunctionAssignmentPatternParameter()
/arkcompiler/ets_frontend/ets2panda/parser/
DTypedParser.h159 ParserStatus ValidateArrowParameterArray(ir::ArrayExpression *arrayPattern);
DTypedParser.cpp1477 ParserStatus TypedParser::ValidateArrowParameterArray(ir::ArrayExpression *arrayPattern) in ValidateArrowParameterArray() argument
1479 if (!arrayPattern->ConvertibleToArrayPattern()) { in ValidateArrowParameterArray()
1483 …ntext() && ((GetContext().Status() & ParserStatus::FUNCTION) != 0) && arrayPattern->IsOptional()) { in ValidateArrowParameterArray()
1484 LogError(diagnostic::BINDING_PATTERN_PARAM_CANNOT_BE_OPTIONAL, {}, arrayPattern->Start()); in ValidateArrowParameterArray()
1487 ValidateArrowParameterBindings(arrayPattern); in ValidateArrowParameterArray()
DexpressionParser.cpp272 if (ir::ArrayExpression *arrayPattern = expr->AsArrayExpression(); in ValidateArrowParameter() local
273 !arrayPattern->ConvertibleToArrayPattern()) { in ValidateArrowParameter()
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dvarbinder.cpp286 auto *arrayPattern = childNode->AsArrayPattern(); in BuildVarDeclaratorId() local
292 BuildSignatureDeclarationBaseParams(arrayPattern->TypeAnnotation()); in BuildVarDeclaratorId()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.cpp483 auto *arrayPattern = childNode->AsArrayPattern(); in BuildVarDeclaratorId() local
489 … BuildTSSignatureDeclarationBaseParamsWithParent(arrayPattern, arrayPattern->TypeAnnotation()); in BuildVarDeclaratorId()
/arkcompiler/ets_frontend/ets2panda/checker/
DTSchecker.h373 …Type *CreateParameterTypeForArrayAssignmentPattern(ir::ArrayExpression *arrayPattern, Type *inferr…
/arkcompiler/ets_frontend/es2panda/typescript/
Dchecker.h439 …Type *CreateParameterTypeForArrayAssignmentPattern(const ir::ArrayExpression *arrayPattern, Type *…
/arkcompiler/ets_frontend/es2panda/parser/
DexpressionParser.cpp323 ir::ArrayExpression *arrayPattern = expr->AsArrayExpression(); in ValidateArrowParameter() local
325 if (!arrayPattern->ConvertibleToArrayPattern()) { in ValidateArrowParameter()