fill in elementReaderType in return type

This commit is contained in:
David Renshaw 2014-05-11 13:40:00 -04:00
parent 3466044eaa
commit 158a525706

View file

@ -918,7 +918,12 @@ private:
spaces(indent), " return !_reader.getPointerField(", offset, ").isNull();\n",
spaces(indent), " }\n",
spaces(indent), " public ", type, ".Reader get", titleCase, "() {\n",
spaces(indent), " public ", type, ".Reader",
(kind == FieldKind::LIST ?
kj::strTree("<", elementReaderType, ">") :
kj::strTree()
),
" get", titleCase, "() {\n",
(kind == FieldKind::LIST ?
kj::strTree(spaces(indent),
" return new ", type, ".Reader(_reader.getPointerField(",