set discriminant

This commit is contained in:
David Renshaw 2014-06-21 09:32:52 -04:00
parent 3afd3d5b61
commit a4155d7746

View file

@ -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",