fill in elementReaderType in return type
This commit is contained in:
parent
3466044eaa
commit
158a525706
1 changed files with 6 additions and 1 deletions
|
@ -918,7 +918,12 @@ private:
|
||||||
spaces(indent), " return !_reader.getPointerField(", offset, ").isNull();\n",
|
spaces(indent), " return !_reader.getPointerField(", offset, ").isNull();\n",
|
||||||
spaces(indent), " }\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 ?
|
(kind == FieldKind::LIST ?
|
||||||
kj::strTree(spaces(indent),
|
kj::strTree(spaces(indent),
|
||||||
" return new ", type, ".Reader(_reader.getPointerField(",
|
" return new ", type, ".Reader(_reader.getPointerField(",
|
||||||
|
|
Loading…
Reference in a new issue