Index: pkg/analyzer/test/generated/incremental_scanner_test.dart |
diff --git a/pkg/analyzer/test/generated/incremental_scanner_test.dart b/pkg/analyzer/test/generated/incremental_scanner_test.dart |
index c0b4365e530ae34fffee81a9d7e013d56d4ebdf9..7307dfbc705a10910fbfcad52b55cb221dd16efc 100644 |
--- a/pkg/analyzer/test/generated/incremental_scanner_test.dart |
+++ b/pkg/analyzer/test/generated/incremental_scanner_test.dart |
@@ -4,6 +4,7 @@ |
library engine.incremental_scanner_test; |
+import 'package:analyzer/src/generated/engine.dart'; |
import 'package:analyzer/src/generated/incremental_scanner.dart'; |
import 'package:analyzer/src/generated/scanner.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
@@ -220,13 +221,6 @@ class IncrementalScannerTest extends EngineTestCase { |
expect(_incrementalScanner.hasNonWhitespaceChange, isTrue); |
} |
- void test_insert_periodAndIdentifier() { |
- // "a + b;" |
- // "a + b.x;" |
- _scan("a + b", "", ".x", ";"); |
- _assertTokens(2, 5, ["a", "+", "b", ".", "x", ";"]); |
- } |
- |
void test_insert_period_afterIdentifier() { |
// "a + b;" |
// "a + b.;" |
@@ -265,6 +259,13 @@ class IncrementalScannerTest extends EngineTestCase { |
expect(_incrementalScanner.hasNonWhitespaceChange, isTrue); |
} |
+ void test_insert_periodAndIdentifier() { |
+ // "a + b;" |
+ // "a + b.x;" |
+ _scan("a + b", "", ".x", ";"); |
+ _assertTokens(2, 5, ["a", "+", "b", ".", "x", ";"]); |
+ } |
+ |
void test_insert_splitIdentifier() { |
// "cob;" |
// "cow.b;" |
@@ -498,8 +499,9 @@ a''', "", " ", " + b;"); |
// Incrementally scan the modified contents. |
// |
GatheringErrorListener incrementalListener = new GatheringErrorListener(); |
- _incrementalScanner = new IncrementalScanner( |
- source, new CharSequenceReader(modifiedContents), incrementalListener); |
+ AnalysisOptionsImpl options = new AnalysisOptionsImpl(); |
+ _incrementalScanner = new IncrementalScanner(source, |
+ new CharSequenceReader(modifiedContents), incrementalListener, options); |
_incrementalTokens = _incrementalScanner.rescan( |
_originalTokens, replaceStart, removed.length, added.length); |
// |