Searched refs:arrayPattern (Results 1 – 10 of 10) sorted by relevance
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | function.cpp | 125 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/ |
| D | function.cpp | 139 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/ |
| D | TypedParser.h | 159 ParserStatus ValidateArrowParameterArray(ir::ArrayExpression *arrayPattern);
|
| D | TypedParser.cpp | 1477 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()
|
| D | expressionParser.cpp | 272 if (ir::ArrayExpression *arrayPattern = expr->AsArrayExpression(); in ValidateArrowParameter() local 273 !arrayPattern->ConvertibleToArrayPattern()) { in ValidateArrowParameter()
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | varbinder.cpp | 286 auto *arrayPattern = childNode->AsArrayPattern(); in BuildVarDeclaratorId() local 292 BuildSignatureDeclarationBaseParams(arrayPattern->TypeAnnotation()); in BuildVarDeclaratorId()
|
| /arkcompiler/ets_frontend/es2panda/binder/ |
| D | binder.cpp | 483 auto *arrayPattern = childNode->AsArrayPattern(); in BuildVarDeclaratorId() local 489 … BuildTSSignatureDeclarationBaseParamsWithParent(arrayPattern, arrayPattern->TypeAnnotation()); in BuildVarDeclaratorId()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | TSchecker.h | 373 …Type *CreateParameterTypeForArrayAssignmentPattern(ir::ArrayExpression *arrayPattern, Type *inferr…
|
| /arkcompiler/ets_frontend/es2panda/typescript/ |
| D | checker.h | 439 …Type *CreateParameterTypeForArrayAssignmentPattern(const ir::ArrayExpression *arrayPattern, Type *…
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | expressionParser.cpp | 323 ir::ArrayExpression *arrayPattern = expr->AsArrayExpression(); in ValidateArrowParameter() local 325 if (!arrayPattern->ConvertibleToArrayPattern()) { in ValidateArrowParameter()
|