| OLD | NEW |
| 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 library dart2js.scanner.string; | 5 library dart2js.scanner.string; |
| 6 | 6 |
| 7 import '../io/source_file.dart' show | 7 import '../io/source_file.dart' show |
| 8 SourceFile; | 8 SourceFile; |
| 9 import '../tokens/precedence.dart' show |
| 10 PrecedenceInfo; |
| 9 import '../tokens/token.dart' show | 11 import '../tokens/token.dart' show |
| 10 PrecedenceInfo, | 12 PrecedenceInfo, |
| 11 StringToken, | 13 StringToken, |
| 12 Token; | 14 Token; |
| 13 | 15 |
| 14 import 'array_based_scanner.dart' show | 16 import 'array_based_scanner.dart' show |
| 15 ArrayBasedScanner; | 17 ArrayBasedScanner; |
| 16 | 18 |
| 17 | 19 |
| 18 /** | 20 /** |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 60 |
| 59 void appendSubstringToken(PrecedenceInfo info, int start, | 61 void appendSubstringToken(PrecedenceInfo info, int start, |
| 60 bool asciiOnly, [int extraOffset = 0]) { | 62 bool asciiOnly, [int extraOffset = 0]) { |
| 61 tail.next = new StringToken.fromSubstring(info, string, start, | 63 tail.next = new StringToken.fromSubstring(info, string, start, |
| 62 scanOffset + extraOffset, tokenStart, canonicalize: true); | 64 scanOffset + extraOffset, tokenStart, canonicalize: true); |
| 63 tail = tail.next; | 65 tail = tail.next; |
| 64 } | 66 } |
| 65 | 67 |
| 66 bool atEndOfFile() => scanOffset >= string.length - 1; | 68 bool atEndOfFile() => scanOffset >= string.length - 1; |
| 67 } | 69 } |
| OLD | NEW |