more uses of unionDiscrim.set
This commit is contained in:
parent
9f368ff3ec
commit
d3aff83097
1 changed files with 7 additions and 4 deletions
|
@ -796,10 +796,13 @@ private:
|
||||||
spaces(indent), " }\n",
|
spaces(indent), " }\n",
|
||||||
|
|
||||||
(typeBody.which() == schema::Type::VOID ?
|
(typeBody.which() == schema::Type::VOID ?
|
||||||
kj::strTree(spaces(indent), " public final void set", titleCase, "() {}\n") :
|
kj::strTree(spaces(indent), " public final void set", titleCase, "() {\n",
|
||||||
|
unionDiscrim.set,
|
||||||
|
spaces(indent), " }\n") :
|
||||||
(typeBody.which() == schema::Type::ENUM ?
|
(typeBody.which() == schema::Type::ENUM ?
|
||||||
kj::strTree(
|
kj::strTree(
|
||||||
spaces(indent), " public final void set", titleCase, "(", type, " value) {\n",
|
spaces(indent), " public final void set", titleCase, "(", type, " value) {\n",
|
||||||
|
unionDiscrim.set,
|
||||||
spaces(indent), " _builder.setShortField(", offset, ", (short)value.ordinal());\n",
|
spaces(indent), " _builder.setShortField(", offset, ", (short)value.ordinal());\n",
|
||||||
spaces(indent), " }\n") :
|
spaces(indent), " }\n") :
|
||||||
kj::strTree(
|
kj::strTree(
|
||||||
|
|
Loading…
Reference in a new issue