set discriminant
This commit is contained in:
parent
3afd3d5b61
commit
a4155d7746
1 changed files with 1 additions and 0 deletions
|
@ -937,6 +937,7 @@ private:
|
||||||
spaces(indent), " throw new Error();\n",
|
spaces(indent), " throw new Error();\n",
|
||||||
spaces(indent), " }\n",
|
spaces(indent), " }\n",
|
||||||
spaces(indent), " public final ", type, ".Builder init", titleCase, "() {\n",
|
spaces(indent), " public final ", type, ".Builder init", titleCase, "() {\n",
|
||||||
|
unionDiscrim.set,
|
||||||
spaces(indent), " return ",
|
spaces(indent), " return ",
|
||||||
type, ".factory.fromStructBuilder(_builder.getPointerField(", offset, ").initStruct(",
|
type, ".factory.fromStructBuilder(_builder.getPointerField(", offset, ").initStruct(",
|
||||||
type, ".STRUCT_SIZE", "));\n",
|
type, ".STRUCT_SIZE", "));\n",
|
||||||
|
|
Loading…
Reference in a new issue