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

Side by Side Diff: pkg/compiler/lib/src/scanner/string_scanner.dart

Issue 1311783012: Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller l… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698