Home
last modified time | relevance | path

Searched refs:discriminants (Results 1 – 9 of 9) sorted by relevance

/third_party/rust/crates/cxx/book/src/
Dshared.md124 ## Enum discriminants
126 You may provide explicit discriminants for some or all of the enum variants, in
146 fitting all the discriminants (whether explicit or implicit). If you need a
201 discriminants, repr). Again, CXX will static assert that all of those things you
/third_party/rust/crates/cxx/tests/ui/
Dnon_integer_discriminant_enum.stderr1 error: enums with non-integer literal discriminants are not supported yet
/third_party/typescript/tests/baselines/reference/
DassignmentCompatWithDiscriminatedUnion.errors.txt47 // Unmatched discriminants
68 // Unmatched non-discriminants
DassignmentCompatWithDiscriminatedUnion.types76 // Unmatched discriminants
113 // Unmatched non-discriminants
DassignmentCompatWithDiscriminatedUnion.symbols76 // Unmatched discriminants
114 // Unmatched non-discriminants
DexcessPropertyCheckWithUnions.types167 // these two are still errors despite their doubled up discriminants
DexcessPropertyCheckWithUnions.errors.txt108 // these two are still errors despite their doubled up discriminants
DexcessPropertyCheckWithUnions.symbols130 // these two are still errors despite their doubled up discriminants
/third_party/rust/crates/cxx/syntax/
Dparse.rs227 let mut discriminants = DiscriminantSet::new(repr); in parse_enum() localVariable
229 match parse_variant(cx, variant, &mut discriminants) { in parse_enum()
241 match discriminants.inferred_repr() { in parse_enum()
286 discriminants: &mut DiscriminantSet, in parse_variant()
314 Some(lit) => discriminants.insert(lit), in parse_variant()
315 None => discriminants.insert_next(), in parse_variant()