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

Unified Diff: tools/gn/location.cc

Issue 588893006: gn: attach comments to parse tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: x64 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..e4dbc10c59ba1bff3624124a2e376f6e14d3203d 100644
--- a/tools/gn/location.cc
+++ b/tools/gn/location.cc
@@ -14,10 +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 {
« 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