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

Unified Diff: tools/gn/location.cc

Issue 588813002: gn: beginnings of format command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle line comments at eof Created 6 years, 3 months 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/location.h ('k') | tools/gn/parse_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/location.cc
diff --git a/tools/gn/location.cc b/tools/gn/location.cc
index 61f22b5e079d2c273b189192f09eb361e6acf7ea..15bd0129ef681c37a33066c86317c9ef9681bf6d 100644
--- a/tools/gn/location.cc
+++ b/tools/gn/location.cc
@@ -14,11 +14,14 @@ Location::Location()
char_offset_(-1) {
}
-Location::Location(const InputFile* file, int line_number, int char_offset)
+Location::Location(const InputFile* file,
+ int line_number,
+ int char_offset,
+ int byte)
: file_(file),
line_number_(line_number),
- char_offset_(char_offset) {
-}
+ char_offset_(char_offset),
+ byte_(byte) {}
bool Location::operator==(const Location& other) const {
return other.file_ == file_ &&
« no previous file with comments | « tools/gn/location.h ('k') | tools/gn/parse_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698