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

Side by Side Diff: tools/gn/tokenizer.h

Issue 1525183002: tools/gn: rename char_offset to column_number (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix indentation Created 5 years 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 unified diff | Download patch
« no previous file with comments | « tools/gn/token.h ('k') | tools/gn/tokenizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_TOKENIZER_H_ 5 #ifndef TOOLS_GN_TOKENIZER_H_
6 #define TOOLS_GN_TOKENIZER_H_ 6 #define TOOLS_GN_TOKENIZER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool has_error() const { return err_->has_error(); } 73 bool has_error() const { return err_->has_error(); }
74 74
75 std::vector<Token> tokens_; 75 std::vector<Token> tokens_;
76 76
77 const InputFile* input_file_; 77 const InputFile* input_file_;
78 const base::StringPiece input_; 78 const base::StringPiece input_;
79 Err* err_; 79 Err* err_;
80 size_t cur_; // Byte offset into input buffer. 80 size_t cur_; // Byte offset into input buffer.
81 81
82 int line_number_; 82 int line_number_;
83 int char_in_line_; 83 int column_number_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(Tokenizer); 85 DISALLOW_COPY_AND_ASSIGN(Tokenizer);
86 }; 86 };
87 87
88 #endif // TOOLS_GN_TOKENIZER_H_ 88 #endif // TOOLS_GN_TOKENIZER_H_
OLDNEW
« no previous file with comments | « tools/gn/token.h ('k') | tools/gn/tokenizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698