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

Unified Diff: pkg/analysis_server/lib/src/services/correction/util.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/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 ba7a8588ce95029e94de9330069f3379ebd1d4ca..67ab4db734f500a80272f40807dc2ad92087d28f 100644
--- a/pkg/analysis_server/lib/src/services/correction/util.dart
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart
@@ -442,7 +442,7 @@ AstNode getParsedClassElementNode(ClassElement classElement) {
classElement.getAncestor((e) => e is CompilationUnitElement);
CompilationUnit unit = getParsedUnit(unitElement);
int offset = classElement.nameOffset;
- AstNode classNameNode = new NodeLocator.con1(offset).searchWithin(unit);
+ AstNode classNameNode = new NodeLocator(offset).searchWithin(unit);
if (classElement.isEnum) {
return classNameNode.getAncestor((node) => node is EnumDeclaration);
} else {
@@ -642,8 +642,7 @@ class CorrectionUtils {
/**
* Returns the [AstNode] that encloses the given offset.
*/
- AstNode findNode(int offset) =>
- new NodeLocator.con1(offset).searchWithin(unit);
+ AstNode findNode(int offset) => new NodeLocator(offset).searchWithin(unit);
/**
* Returns names of elements that might conflict with a new local variable

Powered by Google App Engine
This is Rietveld 408576698