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

Unified Diff: pkg/analyzer/lib/src/dart/scanner/scanner.dart

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | pkg/analyzer/lib/src/generated/gn.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/scanner/scanner.dart
diff --git a/pkg/analyzer/lib/src/dart/scanner/scanner.dart b/pkg/analyzer/lib/src/dart/scanner/scanner.dart
index e2c0aa0113390437dabe8ab2dae032b1f5468a06..fba9b6321c3808347ae41cd25b5cb5401617043c 100644
--- a/pkg/analyzer/lib/src/dart/scanner/scanner.dart
+++ b/pkg/analyzer/lib/src/dart/scanner/scanner.dart
@@ -109,17 +109,27 @@ class _Scanner2 implements Scanner {
}
@override
- void appendToken(Token token) {
+ bool get hasUnmatchedGroups {
throw 'unsupported operation';
}
@override
- int bigSwitch(int next) {
+ set preserveComments(bool preserveComments) {
+ this._preserveComments = preserveComments;
+ }
+
+ @override
+ Token get tail {
throw 'unsupported operation';
}
@override
- bool get hasUnmatchedGroups {
+ void appendToken(Token token) {
+ throw 'unsupported operation';
+ }
+
+ @override
+ int bigSwitch(int next) {
throw 'unsupported operation';
}
@@ -149,11 +159,6 @@ class _Scanner2 implements Scanner {
}
@override
- Token get tail {
- throw 'unsupported operation';
- }
-
- @override
Token tokenize() {
fasta.ScannerResult result = fasta.scanString(_contents,
includeComments: _preserveComments,
@@ -185,9 +190,4 @@ class _Scanner2 implements Scanner {
}
return firstToken;
}
-
- @override
- set preserveComments(bool preserveComments) {
- this._preserveComments = preserveComments;
- }
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/file_state.dart ('k') | pkg/analyzer/lib/src/generated/gn.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698