Commit eb7da615 authored by Jason Choy's avatar Jason Choy

Added name annotation support for groups

parent f5074edd
......@@ -25,4 +25,4 @@
$namespace("capnp::annotations");
annotation namespace(file): Text;
annotation name(field, enumerant, struct, enum): Text;
annotation name(field, enumerant, struct, enum, interface, method, param, group): Text;
......@@ -33,7 +33,7 @@ const ::capnp::_::RawSchema s_b9c6f99ebf805f2c = {
static const ::capnp::_::AlignedData<19> b_f264a779fef191ce = {
{ 0, 0, 0, 0, 5, 0, 5, 0,
206, 145, 241, 254, 121, 167, 100, 242,
20, 0, 0, 0, 5, 0, 126, 0,
20, 0, 0, 0, 5, 0, 188, 7,
129, 78, 48, 184, 123, 125, 248, 189,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
......
......@@ -1582,7 +1582,7 @@ private:
for (auto field: proto.getStruct().getFields()) {
if (field.isGroup()) {
nestedTexts.add(makeNodeText(
namespace_, subScope, toTitleCase(field.getName()),
namespace_, subScope, toTitleCase(protoName(field)),
schemaLoader.get(field.getGroup().getTypeId())));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment