Home
last modified time | relevance | path

Searched refs:typeParams (Results 1 – 25 of 116) sorted by relevance

12345

/arkcompiler/ets_frontend/ets2panda/checker/ets/
DtypeRelationContext.cpp143 auto const &typeParams = type->TypeArguments(); in InstantiateType() local
145 while (typeArgTypes.size() < typeParams.size()) { in InstantiateType()
146 typeArgTypes.push_back(typeParams.at(typeArgTypes.size())); in InstantiateType()
151 for (size_t ix = 0; ix < typeParams.size(); ix++) { in InstantiateType()
152 if (!typeParams[ix]->IsETSTypeParameter()) { in InstantiateType()
155 …ETSChecker::EmplaceSubstituted(constraintsSubstitution, typeParams[ix]->AsETSTypeParameter(), type… in InstantiateType()
157 for (size_t ix = 0; ix < typeParams.size(); ix++) { in InstantiateType()
158 auto *typeParam = typeParams[ix]; in InstantiateType()
166 … {"Type ", typeArgTypes[ix], " is not assignable to", " type parameter ", typeParams[ix]}, pos); in InstantiateType()
Dfunction_helpers.h91 auto &typeParams = sigInfo->typeParams; in BuildImplicitSubstitutionForArguments() local
103 if (!checker->EnhanceSubstitutionForType(typeParams, paramType, argType, substitution, in BuildImplicitSubstitutionForArguments()
116 auto &sigParams = signature->GetSignatureInfo()->typeParams; in BuildExplicitSubstitutionForArguments()
157 if (typeArguments == nullptr && signature->GetSignatureInfo()->typeParams.empty()) { in MaybeSubstituteTypeParameters()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DcallExpression.h38 TSTypeParameterInstantiation *typeParams, bool optional) in CallExpression() argument
42 typeParams_(typeParams), in CallExpression()
67 void SetTypeParams(TSTypeParameterInstantiation *typeParams) in SetTypeParams() argument
69 typeParams_ = typeParams; in SetTypeParams()
DnewExpression.h36 explicit NewExpression(Expression *callee, TSTypeParameterInstantiation *typeParams, in NewExpression() argument
39 typeParams_(typeParams), arguments_(std::move(arguments)) in NewExpression()
DtaggedTemplateExpression.h38 TSTypeParameterInstantiation *typeParams) in TaggedTemplateExpression() argument
39 …ression(AstNodeType::TAGGED_TEMPLATE_EXPRESSION), tag_(tag), quasi_(quasi), typeParams_(typeParams) in TaggedTemplateExpression()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DtaggedTemplateExpression.cpp89 auto *const typeParams = typeParams_ != nullptr ? typeParams_->Clone(allocator) : nullptr; in Clone() local
91 …if (auto *const clone = allocator->New<TaggedTemplateExpression>(tag, quasi, typeParams); clone !=… in Clone()
98 if (typeParams != nullptr) { in Clone()
99 typeParams->SetParent(clone); in Clone()
DcallExpression.h46 TSTypeParameterInstantiation *const typeParams, bool const optional,
51 typeParams_(typeParams), in MaybeOptionalExpression()
119 void SetTypeParams(TSTypeParameterInstantiation *const typeParams) noexcept in SetTypeParams() argument
121 typeParams_ = typeParams; in SetTypeParams()
DdirectEvalExpression.h29 … TSTypeParameterInstantiation *typeParams, bool optional, uint32_t parserStatus) in DirectEvalExpression() argument
30 … : CallExpression(callee, std::move(arguments), typeParams, optional), parserStatus_(parserStatus) in DirectEvalExpression()
DtaggedTemplateExpression.h33 …mplateExpression(Expression *tag, TemplateLiteral *quasi, TSTypeParameterInstantiation *typeParams) in TaggedTemplateExpression() argument
34 …ression(AstNodeType::TAGGED_TEMPLATE_EXPRESSION), tag_(tag), quasi_(quasi), typeParams_(typeParams) in TaggedTemplateExpression()
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsTypeAliasDeclaration.h31 …AliasDeclaration(ArenaAllocator *allocator, Identifier *id, TSTypeParameterDeclaration *typeParams, in TSTypeAliasDeclaration() argument
36 typeParams_(typeParams), in TSTypeAliasDeclaration()
82 void SetTypeParameters(ir::TSTypeParameterDeclaration *typeParams) in SetTypeParameters() argument
84 typeParams_ = typeParams; in SetTypeParameters()
DtsTypeReference.h30 explicit TSTypeReference(Expression *typeName, TSTypeParameterInstantiation *typeParams) in TSTypeReference() argument
31 : TypeNode(AstNodeType::TS_TYPE_REFERENCE), typeName_(typeName), typeParams_(typeParams) in TSTypeReference()
DtsImportType.h26 …explicit TSImportType(Expression *param, TSTypeParameterInstantiation *typeParams, Expression *qua… in TSImportType() argument
30 typeParams_(typeParams), in TSImportType()
/arkcompiler/ets_frontend/ets2panda/ir/base/
DscriptFunctionSignature.h29 …FunctionSignature(TSTypeParameterDeclaration *typeParams, FunctionParams &&params, TypeNode *retur… in FunctionSignature() argument
30 … : typeParams_(typeParams), params_(std::move(params)), returnTypeAnnotation_(returnTypeAnnotation) in FunctionSignature()
/arkcompiler/ets_frontend/ets2panda/checker/types/
Dsignature.h30 …explicit SignatureInfo(ArenaAllocator *allocator) : typeParams {allocator->Adapter()}, params {all… in SignatureInfo()
35 : typeParams(allocator->Adapter()), params(allocator->Adapter()) in SignatureInfo()
37 for (auto *it : other->typeParams) { in SignatureInfo()
38 typeParams.push_back(it); in SignatureInfo()
57 ArenaVector<Type *> typeParams; variable
Dsignature.cpp41 if (!signatureInfo_->typeParams.empty()) { in Substitute()
43 for (auto *tparam : signatureInfo_->typeParams) { in Substitute()
45 newSigInfo->typeParams.push_back(newTparam); in Substitute()
123 if (!signatureInfo_->typeParams.empty()) { in ToString()
125 … for (auto it = signatureInfo_->typeParams.begin(); it != signatureInfo_->typeParams.end(); ++it) { in ToString()
127 if (std::next(it) != signatureInfo_->typeParams.end()) { in ToString()
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dgeneric_typealias_1-expected.txt221 "typeParams": {
819 "typeParams": {
975 "typeParams": {
1086 "typeParams": {
1108 "typeParams": {
1283 "typeParams": {
1305 "typeParams": {
1450 "typeParams": {
1591 "typeParams": {
1613 "typeParams": {
[all …]
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsTypeReference.h41 explicit TSTypeReference(Expression *typeName, TSTypeParameterInstantiation *typeParams) in TSTypeReference() argument
42 : TypeNode(AstNodeType::TS_TYPE_REFERENCE), typeName_(typeName), typeParams_(typeParams) in TSTypeReference()
DtsImportType.h36 …explicit TSImportType(Expression *param, TSTypeParameterInstantiation *typeParams, Expression *qua… in TSImportType() argument
40 typeParams_(typeParams), in TSImportType()
DtsTypeAliasDeclaration.h41 …explicit TSTypeAliasDeclaration(Identifier *id, TSTypeParameterDeclaration *typeParams, Expression… in TSTypeAliasDeclaration() argument
45 typeParams_(typeParams), in TSTypeAliasDeclaration()
DtsFunctionType.h41 TSTypeParameterDeclaration *typeParams, Expression *returnType) in TSFunctionType() argument
45 typeParams_(typeParams), in TSFunctionType()
DtsConstructorType.h41 … TSTypeParameterDeclaration *typeParams, Expression *returnType, bool abstract) in TSConstructorType() argument
45 typeParams_(typeParams), in TSConstructorType()
DtsSignatureDeclaration.h43 TSTypeParameterDeclaration *typeParams, in TSSignatureDeclaration() argument
48 typeParams_(typeParams), in TSSignatureDeclaration()
DtsInterfaceDeclaration.h44 …rfaceDeclaration(binder::LocalScope *scope, Identifier *id, TSTypeParameterDeclaration *typeParams, in TSInterfaceDeclaration() argument
49 typeParams_(typeParams), in TSInterfaceDeclaration()
/arkcompiler/ets_frontend/ets2panda/ir/as/
DnamedType.h54 void SetTypeParams(TSTypeParameterInstantiation *typeParams) in SetTypeParams() argument
56 typeParams_ = typeParams; in SetTypeParams()
/arkcompiler/ets_frontend/ets2panda/ir/ets/
DetsTypeReferencePart.h25 … explicit ETSTypeReferencePart(ir::Expression *name, ir::TSTypeParameterInstantiation *typeParams, in ETSTypeReferencePart() argument
27 …: TypeNode(AstNodeType::ETS_TYPE_REFERENCE_PART), name_(name), typeParams_(typeParams), prev_(prev) in ETSTypeReferencePart()

12345