Index: tools/gn/parse_tree.h |
diff --git a/tools/gn/parse_tree.h b/tools/gn/parse_tree.h |
index 470a0577dd86f8663ab580d297d7bc4eaa31e402..e3d4e7d7f93fb343c65ecea7c631f96451d065a6 100644 |
--- a/tools/gn/parse_tree.h |
+++ b/tools/gn/parse_tree.h |
@@ -39,6 +39,10 @@ class Comments { |
void append_suffix(Token c) { |
suffix_.push_back(c); |
} |
+ // Reverse the order of the suffix comments. When walking the tree in |
+ // post-order we append suffix comments in reverse order, so this fixes them |
+ // up. |
+ void ReverseSuffix(); |
const std::vector<Token>& after() const { return after_; } |
void append_after(Token c) { |