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

Unified Diff: pkg/analysis_server/lib/src/services/correction/util.dart

Issue 492563002: Make more use of generated classes 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/lib/src/services/correction/util.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart
index b42bbe60fbb79407b0cb433404468ea071cb2306..2023d2545d4e59fbabacfbdc47d7cbf84612a01c 100644
--- a/pkg/analysis_server/lib/src/services/correction/util.dart
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart
@@ -4,7 +4,7 @@
library services.src.correction.util;
-import 'package:analysis_server/src/services/correction/change.dart';
+import 'package:analysis_server/src/protocol2.dart' show SourceEdit;
import 'package:analysis_server/src/services/correction/source_range.dart';
import 'package:analysis_server/src/services/correction/strings.dart';
import 'package:analyzer/src/generated/ast.dart';
@@ -231,9 +231,10 @@ class CorrectionUtils {
* [SourceRange] from [oldIndent] to [newIndent], keeping indentation of lines
* relative to each other.
*/
- Edit createIndentEdit(SourceRange range, String oldIndent, String newIndent) {
+ SourceEdit createIndentEdit(SourceRange range, String oldIndent,
+ String newIndent) {
String newSource = replaceSourceRangeIndent(range, oldIndent, newIndent);
- return new Edit(range.offset, range.length, newSource);
+ return new SourceEdit(range.offset, range.length, newSource);
}
/**

Powered by Google App Engine
This is Rietveld 408576698