Home
last modified time | relevance | path

Searched full:enum (Results 1 – 25 of 724) sorted by relevance

12345678910>>...29

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DvoidOperatorWithEnumType.ts21 // 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 …]
DenumClassification.ts22 // 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 …]
DenumBasics.ts21 // 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 …]
DenumMerging.ts22 // 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 …]
DenumOperations.ts21 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 …]
DelidedEmbeddedStatementsReplacedWithSemicolon.ts23 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 {}
DunionOfEnumInference.ts23 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");
DenumConstantMemberWithTemplateLiteralsEmitDeclaration.ts22 enum T1 {
26 enum T2 {
32 enum T3 {
36 enum T4 {
44 enum T5 {
51 enum T6 {
56 declare enum T7 {
DenumConstantMemberWithStringEmitDeclaration.ts22 enum T1 {
28 enum T2 {
33 enum T3 {
38 enum T4 {
42 enum T5 {
46 declare enum T6 {
DaugmentedTypesModules4.ts22 // module then enum
25 enum m4 { }
28 enum m4a { One }
31 enum m4b { One }
34 enum m4c { One }
37 enum m4d { One }
Des6ModuleEnumDeclaration.ts21 export enum e1 {
26 enum e2 {
40 export enum e3 {
45 enum e4 {
56 export enum e5 {
61 enum e6 {
Des6ModuleConstEnumDeclaration.ts21 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 {
Des6ModuleConstEnumDeclaration2.ts21 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 {
DdeclFileEnums.ts22 enum e1 {
28 enum e2 {
34 enum e3 {
40 enum e4 {
48 enum e5 {
DnumericEnumMappedType.ts23 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' }
DconstEnum1.ts22 // 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/
Devents.yaml16 …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
53enum: [success, fail, fail_resolve, fail_megamorphic, unsuitable, noinline, lost_single_impl, limi…
62 type: enum
[all …]
/arkcompiler/ets_frontend/es2panda/binder/
DvariableFlags.h39 _(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/
Dlogger_enum_gen.h.erb18 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 %>,
Dlogger.rb20 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/
DcollisionExportsRequireAndAmbientEnum_externalmodule.ts22 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 {
DcollisionExportsRequireAndAmbientEnum_globalFile.ts22 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/
Dassembler_aarch64_constants.h19 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/
Dtest-ts-enum-20.ts22 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/
DtypeFlag.h25 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,

12345678910>>...29