Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: tools/gn/parse_tree.h

Issue 742003002: gn format: penalty-based line breaking WIP XXX Base URL: https://chromium.googlesource.com/chromium/src.git@gn-more-disabled
Patch Set: futzing Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/line_breaker_unittest.cc ('k') | tools/gn/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/parse_tree.h
diff --git a/tools/gn/parse_tree.h b/tools/gn/parse_tree.h
index 60d15700c0189af8d63c97b0253e96308a59a003..573b1829b4c41f203394de7b396489104c67fb80 100644
--- a/tools/gn/parse_tree.h
+++ b/tools/gn/parse_tree.h
@@ -227,6 +227,7 @@ class BlockNode : public ParseNode {
void Print(std::ostream& out, int indent) const override;
void set_begin_token(const Token& t) { begin_token_ = t; }
+ const Token& begin_token() const { return begin_token_; }
void set_end(scoped_ptr<EndNode> e) { end_ = e.Pass(); }
const EndNode* End() const { return end_.get(); }
@@ -370,6 +371,7 @@ class ListNode : public ParseNode {
void Print(std::ostream& out, int indent) const override;
void set_begin_token(const Token& t) { begin_token_ = t; }
+ const Token& begin_token() const { return begin_token_; }
void set_end(scoped_ptr<EndNode> e) { end_ = e.Pass(); }
const EndNode* End() const { return end_.get(); }
« no previous file with comments | « tools/gn/line_breaker_unittest.cc ('k') | tools/gn/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698