Index: tools/gn/parse_tree.cc |
diff --git a/tools/gn/parse_tree.cc b/tools/gn/parse_tree.cc |
index fedb00433e9a658599ebb080703dced501f5015a..173899c951fbc3eea1c865e4d384cdfc40b257f6 100644 |
--- a/tools/gn/parse_tree.cc |
+++ b/tools/gn/parse_tree.cc |
@@ -27,6 +27,11 @@ Comments::Comments() { |
Comments::~Comments() { |
} |
+void Comments::ReverseSuffix() { |
+ for (int i = 0, j = static_cast<int>(suffix_.size() - 1); i < j; ++i, --j) |
+ std::swap(suffix_[i], suffix_[j]); |
+} |
+ |
ParseNode::ParseNode() { |
} |