Lines Matching refs:printer
40 #include <google/protobuf/io/printer.h>
57 void EnumGenerator::GenerateDefinition(io::Printer* printer) {
62 printer->Print(vars, "enum $classname$ {\n");
63 printer->Indent();
74 if (i > 0) printer->Print(",\n");
75 printer->Print(vars, "$prefix$$name$ = $number$");
85 printer->Outdent();
86 printer->Print("\n};\n");
97 printer->Print(vars,
105 printer->Print(vars,
108 printer->Print(vars,
113 printer->Print(vars,
123 GenerateGetEnumDescriptorSpecializations(io::Printer* printer) {
125 printer->Print(
134 void EnumGenerator::GenerateSymbolImports(io::Printer* printer) {
138 printer->Print(vars, "typedef $classname$ $nested_name$;\n");
142 printer->Print(vars,
146 printer->Print(vars,
158 printer->Print(vars,
163 printer->Print(vars,
167 printer->Print(vars,
176 io::Printer* printer, int index) {
182 printer->Print(vars,
186 printer->Print(vars,
191 void EnumGenerator::GenerateMethods(io::Printer* printer) {
196 printer->Print(vars,
203 printer->Print(vars,
219 printer->Print(
224 printer->Print(vars,
237 printer->Print("#ifndef _MSC_VER\n");
243 printer->Print(vars,
246 printer->Print(vars,
251 printer->Print("#endif // _MSC_VER\n");