Lines Matching defs:JsonPrinter
31 struct JsonPrinter { struct
34 void AddNewLine() { in AddNewLine()
38 void AddIndent(int ident) { text.append(ident, ' '); } in AddIndent()
40 int Indent() const { return std::max(opts.indent_step, 0); } in Indent()
43 void OutputIdentifier(const std::string &name) { in OutputIdentifier()
53 bool PrintScalar(T val, const Type &type, int /*indent*/) { in PrintScalar()
94 void AddComma() { in AddComma()
101 bool PrintContainer(PrintScalarTag, const Container &c, size_t size, in PrintContainer()
123 bool PrintContainer(PrintPointerTag, const Container &c, size_t size, in PrintContainer()
150 bool PrintVector(const void *val, const Type &type, int indent, in PrintVector()
161 bool PrintArray(const void *val, size_t size, const Type &type, int indent) { in PrintArray()
168 bool PrintOffset(const void *val, const Type &type, int indent, in PrintOffset()
239 template<typename T> static T GetFieldDefault(const FieldDef &fd) { in GetFieldDefault()
249 bool GenField(const FieldDef &fd, const Table *table, bool fixed, in GenField()
271 bool GenFieldOffset(const FieldDef &fd, const Table *table, bool fixed, in GenFieldOffset()
304 bool GenStruct(const StructDef &struct_def, const Table *table, int indent) { in GenStruct()
361 JsonPrinter(const Parser &parser, std::string &dest) in JsonPrinter() argument
366 const IDLOptions &opts;
367 std::string &text;