Searched refs:enumType (Results 1 - 11 of 11) sorted by relevance
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | typeCreation.cpp | 235 auto *const enumType = Allocator()->New<EnumType>(enumDecl, ordinal++); in CreateEnumTypeFromEnumDeclaration() local 238 enumType->SetVariable(enumVar); in CreateEnumTypeFromEnumDeclaration() 239 enumVar->SetTsType(enumType); in CreateEnumTypeFromEnumDeclaration() 243 enumType->SetGetNameMethod(getNameMethod); in CreateEnumTypeFromEnumDeclaration() 245 auto getValueOfMethod = MakeMethod(enumDecl, ETSEnumType::GET_VALUE_OF_METHOD_NAME, true, enumType); in CreateEnumTypeFromEnumDeclaration() 246 enumType->SetGetValueOfMethod(getValueOfMethod); in CreateEnumTypeFromEnumDeclaration() 248 auto const fromIntMethod = MakeMethod(enumDecl, ETSEnumType::FROM_INT_METHOD_NAME, false, enumType, false); in CreateEnumTypeFromEnumDeclaration() 249 enumType->SetFromIntMethod(fromIntMethod); in CreateEnumTypeFromEnumDeclaration() 253 enumType->SetBoxedFromIntMethod(boxedFromIntMethod); in CreateEnumTypeFromEnumDeclaration() 255 auto const unboxMethod = MakeMethod(enumDecl, ETSEnumType::UNBOX_METHOD_NAME, false, enumType, fals in CreateEnumTypeFromEnumDeclaration() [all...] |
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
H A D | etsEnumType.cpp | 197 auto *const enumInterface = [enumType = in LookupConstant() 199 if (enumType->IsETSIntEnumType()) { in LookupConstant() 200 return enumType->AsETSIntEnumType(); in LookupConstant() 202 return enumType->AsETSStringEnumType(); in LookupConstant() 231 [[maybe_unused]] static const ETSEnumType *SpecifyEnumInterface(const checker::Type *enumType) in SpecifyEnumInterface() argument 233 if (enumType->IsETSIntEnumType()) { in SpecifyEnumInterface() 234 return enumType->AsETSIntEnumType(); in SpecifyEnumInterface() 236 if (enumType->IsETSStringEnumType()) { in SpecifyEnumInterface() 237 return enumType->AsETSStringEnumType(); in SpecifyEnumInterface()
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsEnumDeclaration.cpp | 380 checker::Type *enumType = checker->Allocator()->New<checker::EnumLiteralType>( in InferType() local 385 return enumType; in InferType() 398 checker::Type *enumType = InferType(checker, isConst_); in Check() local 399 CHECK_NOT_NULL(enumType); in Check() 400 enumType->SetVariable(enumVar); in Check() 401 enumVar->SetTsType(enumType); in Check()
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | enumLiteralType.cpp | 19 #include <typescript/types/enumType.h>
|
H A D | numberType.cpp | 19 #include <typescript/types/enumType.h>
|
H A D | numberLiteralType.cpp | 20 #include <typescript/types/enumType.h>
|
/arkcompiler/ets_frontend/ets2panda/declgen_ets2ts/ |
H A D | declgenEts2Ts.h | 54 void GenEnumType(const checker::ETSIntEnumType *enumType);
|
H A D | declgenEts2Ts.cpp | 274 void TSDeclGen::GenEnumType(const checker::ETSIntEnumType *enumType) in GenEnumType() argument 276 for (auto *member : enumType->GetMembers()) { in GenEnumType()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | TSAnalyzer.cpp | 1825 checker::Type *enumType = checker->Allocator()->New<checker::EnumLiteralType>( in InferType() local 1830 return enumType; in InferType() 1841 checker::Type *enumType = InferType(checker, st->IsConst(), st); in Check() local 1842 enumType->SetVariable(enumVar); in Check() 1843 enumVar->SetTsType(enumType); in Check()
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | ETSGen.cpp | 1227 void ETSGen::EmitUnboxEnum(const ir::AstNode *node, const checker::Type *enumType) in EmitUnboxEnum() argument 1230 if (enumType == nullptr) { in EmitUnboxEnum() 1233 enumType = asExpression->TsType(); in EmitUnboxEnum() 1235 ASSERT(enumType->IsETSEnumType()); in EmitUnboxEnum() 1236 const auto *const enumInterface = enumType->AsETSEnumType(); in EmitUnboxEnum() 1241 SetAccumulatorType(enumType); in EmitUnboxEnum()
|
H A D | ETSGen.h | 669 void EmitUnboxEnum(const ir::AstNode *node, const checker::Type *enumType);
|
Completed in 13 milliseconds