mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Some generic C++ and Rust code is not generated when unions use type aliases because of potential ambiguity. Actually check for this ambiguity and only disable offending code only if it is found.
19 lines
480 B
Java
19 lines
480 B
Java
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
package MyGame.Example;
|
|
|
|
|
|
@javax.annotation.Generated(value="flatc")
|
|
public final class AnyUniqueAliases {
|
|
private AnyUniqueAliases() { }
|
|
public static final byte NONE = 0;
|
|
public static final byte M = 1;
|
|
public static final byte T = 2;
|
|
public static final byte M2 = 3;
|
|
|
|
public static final String[] names = { "NONE", "M", "T", "M2", };
|
|
|
|
public static String name(int e) { return names[e]; }
|
|
}
|
|
|