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

Side by Side Diff: dart/lib/compiler/implementation/scanner/scanner.dart

Issue 11088003: Fix warnings in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix long line Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 abstract class Scanner { 5 abstract class Scanner {
6 Token tokenize(); 6 Token tokenize();
7 } 7 }
8 8
9 /** 9 /**
10 * Common base class for a Dart scanner. 10 * Common base class for a Dart scanner.
11 */ 11 */
12 class AbstractScanner<T extends SourceString> implements Scanner { 12 abstract class AbstractScanner<T extends SourceString> implements Scanner {
13 abstract int advance(); 13 abstract int advance();
14 abstract int nextByte(); 14 abstract int nextByte();
15 15
16 /** 16 /**
17 * Returns the current character or byte depending on the underlying input 17 * Returns the current character or byte depending on the underlying input
18 * kind. For example, [StringScanner] operates on [String] and thus returns 18 * kind. For example, [StringScanner] operates on [String] and thus returns
19 * characters (Unicode codepoints represented as int) whereas 19 * characters (Unicode codepoints represented as int) whereas
20 * [ByteArrayScanner] operates on byte arrays and thus returns bytes. 20 * [ByteArrayScanner] operates on byte arrays and thus returns bytes.
21 */ 21 */
22 abstract int peek(); 22 abstract int peek();
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 next = advance(); 863 next = advance();
864 } 864 }
865 return error(const SourceString("unterminated string literal")); 865 return error(const SourceString("unterminated string literal"));
866 } 866 }
867 867
868 int error(SourceString message) { 868 int error(SourceString message) {
869 appendByteStringToken(BAD_INPUT_INFO, message); 869 appendByteStringToken(BAD_INPUT_INFO, message);
870 return advance(); // Ensure progress. 870 return advance(); // Ensure progress.
871 } 871 }
872 } 872 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/scanner/keyword.dart ('k') | dart/lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698