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

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

Issue 1131423002: Clean up many generated constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment change Created 5 years, 7 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/assist_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
index dbb8255518703f475e6f97f07d99cf630cdc3710..5d03c839b2c3bd7d3b0b4f8516c917d42133e880 100644
--- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
@@ -72,8 +72,7 @@ class AssistProcessor {
List<Assist> compute() {
utils = new CorrectionUtils(unit);
- node =
- new NodeLocator.con2(selectionOffset, selectionEnd).searchWithin(unit);
+ node = new NodeLocator(selectionOffset, selectionEnd).searchWithin(unit);
if (node == null) {
return assists;
}
@@ -1093,7 +1092,7 @@ class AssistProcessor {
return;
}
int declOffset = element.nameOffset;
- AstNode declNode = new NodeLocator.con1(declOffset).searchWithin(unit);
+ AstNode declNode = new NodeLocator(declOffset).searchWithin(unit);
if (declNode != null &&
declNode.parent is VariableDeclaration &&
(declNode.parent as VariableDeclaration).name == declNode &&

Powered by Google App Engine
This is Rietveld 408576698