Home
last modified time | relevance | path

Searched refs:MyEnum (Results 1 – 25 of 30) sorted by relevance

12

/third_party/typescript/tests/baselines/reference/
DenumAssignmentCompat4.types5 export enum MyEnum {
6 >MyEnum : MyEnum
9 >BAR : MyEnum.BAR
12 >object2 : { foo: MyEnum; }
13 >{ foo: MyEnum.BAR } : { foo: MyEnum; }
15 foo: MyEnum.BAR
16 >foo : MyEnum
17 >MyEnum.BAR : MyEnum
18 >MyEnum : typeof MyEnum
19 >BAR : MyEnum
[all …]
DenumAssignmentCompat4.js3 export enum MyEnum {
7 foo: MyEnum.BAR
12 export enum MyEnum {
16 foo: MyEnum.FOO
29 var MyEnum;
30 (function (MyEnum) { argument
31 MyEnum[MyEnum["BAR"] = 0] = "BAR";
32 })(MyEnum = M.MyEnum || (M.MyEnum = {}));
34 foo: MyEnum.BAR
39 var MyEnum;
[all …]
DenumAssignmentCompat4.symbols5 export enum MyEnum {
6 >MyEnum : Symbol(MyEnum, Decl(enumAssignmentCompat4.ts, 0, 13))
9 >BAR : Symbol(MyEnum.BAR, Decl(enumAssignmentCompat4.ts, 1, 24))
14 foo: MyEnum.BAR
16 >MyEnum.BAR : Symbol(MyEnum.BAR, Decl(enumAssignmentCompat4.ts, 1, 24))
17 >MyEnum : Symbol(MyEnum, Decl(enumAssignmentCompat4.ts, 0, 13))
18 >BAR : Symbol(MyEnum.BAR, Decl(enumAssignmentCompat4.ts, 1, 24))
26 export enum MyEnum {
27 >MyEnum : Symbol(MyEnum, Decl(enumAssignmentCompat4.ts, 9, 13))
30 >FOO : Symbol(MyEnum.FOO, Decl(enumAssignmentCompat4.ts, 10, 24))
[all …]
DexportedEnumTypeAndValue.symbols3 const MyEnum = {
4 >MyEnum : Symbol(MyEnum, Decl(def.js, 1, 5), Decl(def.js, 0, 4))
13 export default MyEnum;
14 >MyEnum : Symbol(MyEnum, Decl(def.js, 1, 5), Decl(def.js, 0, 4))
17 import MyEnum from "./def";
18 >MyEnum : Symbol(MyEnum, Decl(use.js, 0, 6))
20 /** @type {MyEnum} */
21 const v = MyEnum.b;
23 >MyEnum.b : Symbol(b, Decl(def.js, 2, 7))
24 >MyEnum : Symbol(MyEnum, Decl(use.js, 0, 6))
DexhaustiveSwitchStatements1.js92 enum MyEnum {
97 function thisGivesError(e: MyEnum): string {
100 case MyEnum.A: s = "it was A"; break;
101 case MyEnum.B: s = "it was B"; break;
106 function good1(e: MyEnum): string {
109 case MyEnum.A: s = "it was A"; break;
110 case MyEnum.B: s = "it was B"; break;
116 function good2(e: MyEnum): string {
118 case MyEnum.A: return "it was A";
119 case MyEnum.B: return "it was B";
[all …]
DexportedEnumTypeAndValue.types3 const MyEnum = {
4 >MyEnum : { a: number; b: number; }
16 export default MyEnum;
17 >MyEnum : number
20 import MyEnum from "./def";
21 >MyEnum : { a: number; b: number; }
23 /** @type {MyEnum} */
24 const v = MyEnum.b;
26 >MyEnum.b : number
27 >MyEnum : { a: number; b: number; }
DexhaustiveSwitchStatements1.types314 enum MyEnum {
315 >MyEnum : MyEnum
318 >A : MyEnum.A
321 >B : MyEnum.B
324 function thisGivesError(e: MyEnum): string {
325 >thisGivesError : (e: MyEnum) => string
326 >e : MyEnum
332 >e : MyEnum
334 case MyEnum.A: s = "it was A"; break;
335 >MyEnum.A : MyEnum.A
[all …]
DexhaustiveSwitchStatements1.symbols256 enum MyEnum {
257 >MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1))
260 >A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13))
263 >B : Symbol(MyEnum.B, Decl(exhaustiveSwitchStatements1.ts, 91, 3))
266 function thisGivesError(e: MyEnum): string {
269 >MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1))
277 case MyEnum.A: s = "it was A"; break;
278 >MyEnum.A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13))
279 >MyEnum : Symbol(MyEnum, Decl(exhaustiveSwitchStatements1.ts, 86, 1))
280 >A : Symbol(MyEnum.A, Decl(exhaustiveSwitchStatements1.ts, 90, 13))
[all …]
DexhaustiveSwitchStatements1.errors.txt98 enum MyEnum {
103 function thisGivesError(e: MyEnum): string {
106 case MyEnum.A: s = "it was A"; break;
107 case MyEnum.B: s = "it was B"; break;
112 function good1(e: MyEnum): string {
115 case MyEnum.A: s = "it was A"; break;
116 case MyEnum.B: s = "it was B"; break;
122 function good2(e: MyEnum): string {
124 case MyEnum.A: return "it was A";
125 case MyEnum.B: return "it was B";
/third_party/typescript/tests/cases/conformance/controlFlow/
DexhaustiveSwitchStatements1.ts95 enum MyEnum { enum
100 function thisGivesError(e: MyEnum): string {
103 case MyEnum.A: s = "it was A"; break;
104 case MyEnum.B: s = "it was B"; break;
109 function good1(e: MyEnum): string {
112 case MyEnum.A: s = "it was A"; break;
113 case MyEnum.B: s = "it was B"; break;
119 function good2(e: MyEnum): string {
121 case MyEnum.A: return "it was A";
122 case MyEnum.B: return "it was B";
/third_party/typescript/tests/cases/conformance/jsdoc/
DexportedEnumTypeAndValue.ts7 const MyEnum = { constant
11 export default MyEnum;
14 import MyEnum from "./def";
17 const v = MyEnum.b;
/third_party/typescript/tests/cases/compiler/
DenumAssignmentCompat4.ts2 export enum MyEnum { enum
6 foo: MyEnum.BAR
11 export enum MyEnum { enum
15 foo: MyEnum.FOO
/third_party/protobuf/src/google/protobuf/
Dunittest_preserve_unknown_enum2.proto35 enum MyEnum { enum
42 optional MyEnum e = 1;
43 repeated MyEnum repeated_e = 2;
44 repeated MyEnum repeated_packed_e = 3 [packed=true];
45 repeated MyEnum repeated_packed_unexpected_e = 4; // not packed
47 MyEnum oneof_e_1 = 5;
48 MyEnum oneof_e_2 = 6;
Dunittest_preserve_unknown_enum.proto38 enum MyEnum { enum
52 MyEnum e = 1;
53 repeated MyEnum repeated_e = 2;
54 repeated MyEnum repeated_packed_e = 3 [packed=true];
57 MyEnum oneof_e_1 = 5;
58 MyEnum oneof_e_2 = 6;
/third_party/abseil-cpp/absl/container/internal/
Dhash_function_defaults_test.cc59 enum class MyEnum { A, B, C, D }; enum
62 hash_default_eq<MyEnum> eq; in TEST()
63 EXPECT_TRUE(eq(MyEnum::A, MyEnum::A)); in TEST()
64 EXPECT_FALSE(eq(MyEnum::A, MyEnum::B)); in TEST()
68 hash_default_hash<MyEnum> hash; in TEST()
70 for (MyEnum e : {MyEnum::A, MyEnum::B, MyEnum::C}) { in TEST()
73 EXPECT_NE(h, hash(MyEnum::D)); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dhash_function_defaults_test.cc59 enum class MyEnum { A, B, C, D }; enum
62 hash_default_eq<MyEnum> eq; in TEST()
63 EXPECT_TRUE(eq(MyEnum::A, MyEnum::A)); in TEST()
64 EXPECT_FALSE(eq(MyEnum::A, MyEnum::B)); in TEST()
68 hash_default_hash<MyEnum> hash; in TEST()
70 for (MyEnum e : {MyEnum::A, MyEnum::B, MyEnum::C}) { in TEST()
73 EXPECT_NE(h, hash(MyEnum::D)); in TEST()
/third_party/grpc/third_party/upb/tests/json/
Dtest.proto14 MyEnum optional_enum = 9;
24 repeated MyEnum repeated_enum = 19;
43 enum MyEnum { enum
Denum_from_separate_file.proto8 optional MyEnum e = 1;
/third_party/flatbuffers/tests/rust_usage_test/tests/flexbuffers_tests/
Drwyw.rs388 enum MyEnum { in serde_serious() enum
409 struct MyTupleStruct(MyNewType, MyUnitStruct, MyStruct, Vec<MyEnum>); in serde_serious()
421 MyEnum::Unit, in serde_serious()
422 MyEnum::NewType([-1, 0, 1]), in serde_serious()
423 MyEnum::Unit, in serde_serious()
424 MyEnum::Tuple(3.14, 2.71), in serde_serious()
425 MyEnum::Struct { in serde_serious()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TableGen/
DSearchableTable.td75 // def MyEnum : GenericEnum {
76 // let FilterClass = "MyEnum";
81 // MyEnum V;
88 // GenericEnum TypeOf_V = MyEnum;
/third_party/typescript_eslint/packages/eslint-plugin/docs/rules/
Dspace-infix-ops.md8 enum MyEnum {
/third_party/boost/libs/type_traits/doc/
Dis_compound.qbk26 [:`is_compound<MyEnum>::type` is the type `__true_type`.]
/third_party/glib/gobject/tests/
Dsignals.c110 } MyEnum; typedef
187 …est, int i, gboolean b, char c, guchar uc, guint ui, glong l, gulong ul, MyEnum e, MyFlags f, floa…
197 …est, int i, gboolean b, char c, guchar uc, guint ui, glong l, gulong ul, MyEnum e, MyFlags f, floa…
198 …est, int i, gboolean b, char c, guchar uc, guint ui, glong l, gulong ul, MyEnum e, MyFlags f, floa…
934 …est, int i, gboolean b, char c, guchar uc, guint ui, glong l, gulong ul, MyEnum e, MyFlags f, floa… in all_types_handler()
945 g_assert_cmpenum (MyEnum, e, ==, MY_ENUM_VALUE); in all_types_handler()
959 …est, int i, gboolean b, char c, guchar uc, guint ui, glong l, gulong ul, MyEnum e, guint f, float … in all_types_handler_cb()
977 MyEnum e = MY_ENUM_VALUE; in test_all_types()
/third_party/python/Lib/test/
Dtest_enumerate.py150 class MyEnum(enumerate): class
155 enum = MyEnum
/third_party/protobuf/objectivec/Tests/
Dunittest_objc.proto803 enum MyEnum { enum
810 optional MyEnum foo = 1;
811 optional MyEnum bar = 2 [default = ONE];
812 optional MyEnum baz = 3 [default = NEG_ONE];
814 repeated MyEnum mumble = 4;

12