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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/extract_local.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/refactoring/extract_local.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart b/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart
index 8d7782c0db05499255a0057bceec6eb667153e3c..3acc98241340899527e2ad4d8941459931ee1c6c 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/extract_local.dart
@@ -319,7 +319,7 @@ class ExtractLocalRefactoringImpl extends RefactoringImpl
List<AstNode> _findNodes(List<SourceRange> ranges) {
List<AstNode> nodes = <AstNode>[];
for (SourceRange range in ranges) {
- AstNode node = new NodeLocator.con1(range.offset).searchWithin(unit);
+ AstNode node = new NodeLocator(range.offset).searchWithin(unit);
nodes.add(node);
}
return nodes;
@@ -402,7 +402,7 @@ class ExtractLocalRefactoringImpl extends RefactoringImpl
AstNode enclosingFunction;
{
AstNode selectionNode =
- new NodeLocator.con1(selectionOffset).searchWithin(unit);
+ new NodeLocator(selectionOffset).searchWithin(unit);
enclosingFunction = getEnclosingExecutableNode(selectionNode);
}
// visit function

Powered by Google App Engine
This is Rietveld 408576698