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

Unified Diff: pkg/analysis_server/test/services/correction/assist_test.dart

Issue 479683005: Make more use of generated code in analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
Index: pkg/analysis_server/test/services/correction/assist_test.dart
diff --git a/pkg/analysis_server/test/services/correction/assist_test.dart b/pkg/analysis_server/test/services/correction/assist_test.dart
index 4abc0d0eae32a1e379dd5ecc36d363fd4aebd60b..d3f9427d7b3caf08c2ae3b99595412e402a91775 100644
--- a/pkg/analysis_server/test/services/correction/assist_test.dart
+++ b/pkg/analysis_server/test/services/correction/assist_test.dart
@@ -4,7 +4,8 @@
library test.services.correction.assist;
-import 'package:analysis_server/src/protocol2.dart' show SourceEdit;
+import 'package:analysis_server/src/protocol2.dart' show SourceEdit,
+ SourceFileEdit, Position;
import 'package:analysis_server/src/services/correction/assist.dart';
import 'package:analysis_server/src/services/correction/change.dart';
import 'package:analysis_server/src/services/index/index.dart';
@@ -42,7 +43,7 @@ class AssistProcessorTest extends AbstractSingleUnitTest {
assist = _assertHasAssist(kind);
change = assist.change;
// apply to "file"
- List<FileEdit> fileEdits = change.fileEdits;
+ List<SourceFileEdit> fileEdits = change.fileEdits;
expect(fileEdits, hasLength(1));
resultCode = SourceEdit.applySequence(testCode, change.fileEdits[0].edits);
// verify

Powered by Google App Engine
This is Rietveld 408576698