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; |
- } |
} |