aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/node_generator.cc
diff options
context:
space:
mode:
authorGravatar Garret Kelly <gdk@google.com>2017-10-10 15:58:41 -0400
committerGravatar Garret Kelly <gdk@google.com>2017-11-06 16:45:13 -0500
commitcf5a1f2c8162fbfefc0f4aa5d28e6a17d50a840f (patch)
tree18453d288ea86769cc138c6ee096d3c62154698b /src/compiler/node_generator.cc
parent0f2cfdcc0f57d21fe2823268263ef5bdc4b6704c (diff)
Do not interpolate variables in leading comments.
There is at least one well-known proto file (plugin.proto) with comments that include variable-like strings that are not actual variables. This leads to DFATAL log statements that clutter the output and don't provide any benefit.
Diffstat (limited to 'src/compiler/node_generator.cc')
-rw-r--r--src/compiler/node_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/node_generator.cc b/src/compiler/node_generator.cc
index ed835b4445..661587cbd6 100644
--- a/src/compiler/node_generator.cc
+++ b/src/compiler/node_generator.cc
@@ -250,7 +250,7 @@ grpc::string GenerateFile(const FileDescriptor* file) {
grpc::string leading_comments = GetNodeComments(file, true);
if (!leading_comments.empty()) {
out.Print("// Original file comments:\n");
- out.Print(leading_comments.c_str());
+ out.PrintRaw(leading_comments.c_str());
}
out.Print("'use strict';\n");