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

Unified Diff: pkg/analysis_server/test/services/correction/fix_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/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 1c381b7d93b58f821d904e5cfe2469e9110b3a9f..ef2b3364a372a8c8d7125ca945cb3bba1ced307e 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -4,7 +4,8 @@
library test.services.correction.fix;
-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/change.dart';
import 'package:analysis_server/src/services/correction/fix.dart';
import 'package:analysis_server/src/services/index/index.dart';
@@ -40,7 +41,7 @@ class FixProcessorTest extends AbstractSingleUnitTest {
fix = _assertHasFix(kind, error);
change = fix.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