| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |