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

Side by Side Diff: runtime/vm/scanner.h

Issue 17609004: Removed dead code: ConsumeIdentChar (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/scanner.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // Scanner class for the Dart language. The scanner reads source text 5 // Scanner class for the Dart language. The scanner reads source text
6 // and produces a stream of tokens which is used by the parser. 6 // and produces a stream of tokens which is used by the parser.
7 // 7 //
8 8
9 #ifndef VM_SCANNER_H_ 9 #ifndef VM_SCANNER_H_
10 #define VM_SCANNER_H_ 10 #define VM_SCANNER_H_
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Reads a fixed number of hexadecimal digits. 180 // Reads a fixed number of hexadecimal digits.
181 bool ScanHexDigits(int digits, int32_t* value); 181 bool ScanHexDigits(int digits, int32_t* value);
182 182
183 // Reads a variable number of hexadecimal digits. 183 // Reads a variable number of hexadecimal digits.
184 bool ScanHexDigits(int min_digits, int max_digits, int32_t* value); 184 bool ScanHexDigits(int min_digits, int max_digits, int32_t* value);
185 185
186 // Reads an escaped code point from within a string literal. 186 // Reads an escaped code point from within a string literal.
187 void ScanEscapedCodePoint(int32_t* escaped_char); 187 void ScanEscapedCodePoint(int32_t* escaped_char);
188 188
189 // Reads identifier. 189 // Reads identifier.
190 RawString* ConsumeIdentChars(bool allow_dollar);
191 void ScanIdentChars(bool allow_dollar); 190 void ScanIdentChars(bool allow_dollar);
192 void ScanIdent() { 191 void ScanIdent() {
193 ScanIdentChars(true); 192 ScanIdentChars(true);
194 } 193 }
195 void ScanIdentNoDollar() { 194 void ScanIdentNoDollar() {
196 ScanIdentChars(false); 195 ScanIdentChars(false);
197 } 196 }
198 197
199 // Reads a number literal. 198 // Reads a number literal.
200 void ScanNumber(bool dec_point_seen); 199 void ScanNumber(bool dec_point_seen);
(...skipping 22 matching lines...) Expand all
223 222
224 SourcePosition c0_pos_; // Source position of lookahead character c0_. 223 SourcePosition c0_pos_; // Source position of lookahead character c0_.
225 KeywordTable keywords_[Token::numKeywords]; 224 KeywordTable keywords_[Token::numKeywords];
226 Array& keyword_symbol_table_; // Access to keyword symbols in object store. 225 Array& keyword_symbol_table_; // Access to keyword symbols in object store.
227 }; 226 };
228 227
229 228
230 } // namespace dart 229 } // namespace dart
231 230
232 #endif // VM_SCANNER_H_ 231 #endif // VM_SCANNER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698