/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | voidOperatorWithEnumType.ts | 21 // void operator on enum type 23 enum ENUM { }; 24 enum ENUM1 { A, B, "" }; 26 // enum type let 27 let ResultIsAny1 = void ENUM; variable 29 AssertType(void ENUM, "undefined"); 30 AssertType(ENUM, "typeof ENUM"); 37 // enum type expressions 45 let ResultIsAny4 = void (ENUM[0] + ENUM1["B"]); 47 AssertType(void (ENUM[0] + ENUM1["B"]), "undefined"); [all …]
|
D | enumClassification.ts | 22 // An enum type where each member has no initializer or an initializer that specififes 24 // the enum type is classified as a literal enum type. An enum type that doesn't adhere 25 // to this pattern is classified as a numeric enum type. 27 // Examples of literal enum types 29 enum E01 { 33 enum E02 { 37 enum E03 { 41 enum E04 { 47 enum E05 { 53 enum E06 { [all …]
|
D | enumBasics.ts | 21 // Enum without initializers have first member = 0 and successive members = N + 1 22 enum E1 { 28 // Enum type is a subtype of Number 33 // Enum object type is anonymous with properties of the enum type and numeric indexer 61 // Reverse mapping of enum returns string name of property 72 // Enum with only constant members 73 enum E2 { 77 // Enum with only computed members 78 enum E3 { 82 // Enum with constant members followed by computed members [all …]
|
D | enumMerging.ts | 22 // Enum with only constant members across 2 declarations with the same root module 23 // Enum with initializer in all declarations with constant members with the same root module 25 enum EImpl1 { 29 enum EImpl1 { 33 export enum EConst1 { 37 export enum EConst1 { 44 // Enum with only computed members across 2 declarations with the same root module 46 export enum EComp2 { 50 export enum EComp2 { 57 // Enum with initializer in only one of two declarations with constant members with the same root m… [all …]
|
D | enumOperations.ts | 21 enum Enum { None = 0 } 22 let enumType: Enum = Enum.None; 23 AssertType(enumType, "Enum"); 24 AssertType(Enum.None, "Enum"); 36 AssertType(enumType, "Enum"); 46 AssertType(enumType, "Enum"); 51 AssertType(enumType, "Enum"); 56 AssertType(enumType, "Enum"); 65 AssertType(enumType, "Enum"); 70 AssertType(enumType, "Enum"); [all …]
|
D | elidedEmbeddedStatementsReplacedWithSemicolon.ts | 23 const enum A {} 25 const enum B {} 28 const enum C {} 32 const enum D {} 35 const enum E {} 38 const enum F {} 41 const enum G {} 45 const enum H {}
|
D | unionOfEnumInference.ts | 23 enum Enum { A, B, C } 25 interface Interface<T extends Enum> { 29 function foo<T extends Enum>(x: Interface<T>) { } 31 function bar(x: Interface<Enum.A | Enum.B> | Interface<Enum.C>) { 34 AssertType(foo, "<T extends Enum>(Interface<T>) => void");
|
D | enumConstantMemberWithTemplateLiteralsEmitDeclaration.ts | 22 enum T1 { 26 enum T2 { 32 enum T3 { 36 enum T4 { 44 enum T5 { 51 enum T6 { 56 declare enum T7 {
|
D | enumConstantMemberWithStringEmitDeclaration.ts | 22 enum T1 { 28 enum T2 { 33 enum T3 { 38 enum T4 { 42 enum T5 { 46 declare enum T6 {
|
D | augmentedTypesModules4.ts | 22 // module then enum 25 enum m4 { } 28 enum m4a { One } 31 enum m4b { One } 34 enum m4c { One } 37 enum m4d { One }
|
D | es6ModuleEnumDeclaration.ts | 21 export enum e1 { 26 enum e2 { 40 export enum e3 { 45 enum e4 { 56 export enum e5 { 61 enum e6 {
|
D | es6ModuleConstEnumDeclaration.ts | 21 export const enum e1 { 26 const enum e2 { 40 export const enum e3 { 45 const enum e4 { 56 export const enum e5 { 61 const enum e6 {
|
D | es6ModuleConstEnumDeclaration2.ts | 21 export const enum e1 { 26 const enum e2 { 40 export const enum e3 { 45 const enum e4 { 56 export const enum e5 { 61 const enum e6 {
|
D | declFileEnums.ts | 22 enum e1 { 28 enum e2 { 34 enum e3 { 40 enum e4 { 48 enum e5 {
|
D | numericEnumMappedType.ts | 23 enum E1 { ONE, TWO, THREE } 24 declare enum E2 { ONE, TWO, THREE } 73 // Multiple numeric enum types accrue to the same numeric index signature in a mapped type 77 enum N1 { A = val(), B = val() } 78 enum N2 { C = val(), D = val() } 82 // Enum types with string valued members are always literal enum types and therefore 86 declare enum E { ONE, TWO, THREE = 'x' }
|
D | constEnum1.ts | 22 // An enum declaration that specifies a const modifier is a constant enum declaration. 23 // In a constant enum declaration, all members must have constant values and 24 … a member declaration to specify an expression that isn't classified as a constant enum expression. 26 const enum E {
|
/arkcompiler/runtime_core/libpandabase/events/ |
D | events.yaml | 16 …ds that will be stored within event. The type of each field should be a real C++ type, except enum. 34 type: enum 35 enum: [after_cframe, after_iframe, top_frame] 37 type: enum 38 enum: [success, error] 49 type: enum 50 enum: [static, virtual, virtual_cha, virtual_monomorphic, virtual_polymorphic] 52 type: enum 53 …enum: [success, fail, fail_resolve, fail_megamorphic, unsuitable, noinline, lost_single_impl, limi… 62 type: enum [all …]
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | variableFlags.h | 39 _(ENUM, EnumDecl) \ 42 enum class DeclType { 64 enum class ScopeType { 70 enum class ResolveBindingOptions { 79 enum class ResolveBindingFlags { 90 _(ENUM, EnumVariable) \ 95 enum class VariableType { 101 enum class VariableKind { 109 enum class VariableFlags { 145 enum class LetOrConstStatus { [all …]
|
/arkcompiler/runtime_core/libpandabase/templates/ |
D | logger_enum_gen.h.erb | 18 enum class Level : uint8_t { 20 <%= l.enum %> = <%= l.value %>, 25 enum Component : uint32_t { 27 <%= c.enum %>, 32 enum class LogDfxComponent : uint8_t { 34 <%= c.enum %>,
|
D | logger.rb | 20 attr_reader :enum accessor in Level 27 @enum = dscr['enum'] || @name.upcase 34 attr_reader :enum accessor in Component 39 @enum = dscr['enum'] || @name.upcase
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/collisionExportsRequireAndAmbientEnum/ |
D | collisionExportsRequireAndAmbientEnum_externalmodule.ts | 22 export declare enum require { 26 export declare enum exports { 31 enum require { 35 enum exports { 41 export declare enum require { 45 export declare enum exports {
|
D | collisionExportsRequireAndAmbientEnum_globalFile.ts | 22 declare enum require { 26 declare enum exports { 31 enum require { 35 enum exports { 41 export declare enum require { 45 export declare enum exports {
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
D | assembler_aarch64_constants.h | 19 enum RegisterId : uint8_t { 29 enum RegisterType { 37 enum VectorRegisterId : uint8_t { 45 enum Extend : uint8_t { 57 enum Shift : uint8_t { 66 enum Scale { 74 enum Condition { 95 enum MoveOpCode { 101 enum AddSubOpCode { 110 enum BitwiseOpCode { [all …]
|
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/enums/ |
D | test-ts-enum-20.ts | 22 enum E {a = "str"} 23 enum E {b = a} 24 export enum E1 {a=E.b} 29 export enum E2 {a = ns.ns.E1.a} 34 enum E3 {a = ns2.ns1.ns1.E2.a}
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | typeFlag.h | 25 enum class TypeFlag : uint64_t { 42 ENUM = 1ULL << 15, // enum x enumerator 43 ENUM_LITERAL = 1ULL << 16, // member of enum 60 COMPUTED_TYPE_LITERAL_NAME = STRING_LITERAL | NUMBER_LITERAL | ENUM, 68 NUMBER_LIKE_ENUM = NUMBER_LIKE | ENUM, 74 …PRIMITIVE = STRING | NUMBER | BIGINT | BOOLEAN | ENUM | ENUM_LITERAL | SYMBOL | VOID | UNDEFINED |… 81 VALID_ARITHMETIC_TYPE = ANY | NUMBER_LIKE | BIGINT_LIKE | ENUM,
|