/third_party/typescript/tests/baselines/reference/ |
D | enumAssignmentCompat4.types | 5 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 …]
|
D | enumAssignmentCompat4.js | 3 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 …]
|
D | enumAssignmentCompat4.symbols | 5 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 …]
|
D | exportedEnumTypeAndValue.symbols | 3 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))
|
D | exhaustiveSwitchStatements1.js | 92 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 …]
|
D | exportedEnumTypeAndValue.types | 3 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; }
|
D | exhaustiveSwitchStatements1.types | 314 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 …]
|
D | exhaustiveSwitchStatements1.symbols | 256 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 …]
|
D | exhaustiveSwitchStatements1.errors.txt | 98 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/ |
D | exhaustiveSwitchStatements1.ts | 95 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/ |
D | exportedEnumTypeAndValue.ts | 7 const MyEnum = { constant 11 export default MyEnum; 14 import MyEnum from "./def"; 17 const v = MyEnum.b;
|
/third_party/typescript/tests/cases/compiler/ |
D | enumAssignmentCompat4.ts | 2 export enum MyEnum { enum 6 foo: MyEnum.BAR 11 export enum MyEnum { enum 15 foo: MyEnum.FOO
|
/third_party/protobuf/src/google/protobuf/ |
D | unittest_preserve_unknown_enum2.proto | 35 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;
|
D | unittest_preserve_unknown_enum.proto | 38 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/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | hash_function_defaults_test.cc | 59 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/rust/crates/bindgen/bindgen-tests/tests/headers/ |
D | bitfield_align_2.h | 2 enum MyEnum { enum 10 enum MyEnum tag : 2;
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
D | bitfield_align_2.rs | 97 pub enum MyEnum { enum 134 pub fn tag(&self) -> MyEnum { in tag() argument 140 pub fn set_tag(&mut self, val: MyEnum) { in set_tag() argument 161 tag: MyEnum, in new_bitfield_1() argument
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/property_access/ |
D | object_any_type_6.ts | 36 enum MyEnum { enum 41 const value3 = obj[MyEnum.Prop3]; constant
|
/third_party/rust/crates/bindgen/bindgen-integration/cpp/ |
D | Test.h | 109 enum MyEnum { enum 117 MyEnum tag: 2; 121 bool assert(MyEnum tag, unsigned long ptr);
|
D | Test.cc | 72 Fourth::assert(MyEnum tag, unsigned long ptr) in assert()
|
/third_party/flatbuffers/tests/rust_usage_test/tests/flexbuffers_tests/ |
D | rwyw.rs | 388 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/ |
D | SearchableTable.td | 75 // def MyEnum : GenericEnum { 76 // let FilterClass = "MyEnum"; 81 // MyEnum V; 88 // GenericEnum TypeOf_V = MyEnum;
|
/third_party/rust/crates/bindgen/bindgen-integration/src/ |
D | lib.rs | 99 assert!(unsafe { fourth.assert(bindings::bitfields::MyEnum::ONE, 0) }); in test_bitfields_fourth() 101 fourth.set_tag(bindings::bitfields::MyEnum::THREE); in test_bitfields_fourth() 104 fourth.assert(bindings::bitfields::MyEnum::THREE, 0xdeadbeef) in test_bitfields_fourth()
|
/third_party/python/Lib/test/ |
D | test_enumerate.py | 150 class MyEnum(enumerate): class 155 enum = MyEnum
|
/third_party/protobuf/objectivec/Tests/ |
D | unittest_objc.proto | 803 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;
|