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

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

Issue 10917208: Change interfaces to abstract classes in dart2js compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 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 interface 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 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
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 next = advance(); 853 next = advance();
854 } 854 }
855 return error(const SourceString("unterminated string literal")); 855 return error(const SourceString("unterminated string literal"));
856 } 856 }
857 857
858 int error(SourceString message) { 858 int error(SourceString message) {
859 appendByteStringToken(BAD_INPUT_INFO, message); 859 appendByteStringToken(BAD_INPUT_INFO, message);
860 return advance(); // Ensure progress. 860 return advance(); // Ensure progress.
861 } 861 }
862 } 862 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698