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

Unified Diff: pkg/analysis_server/lib/src/services/correction/fix_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/fix_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 9ae3c0e089ebb2b61700e2b5e100be686bafb07c..25dfa1c7a7f2360735720687f7393ce91ad2d730 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -107,8 +107,8 @@ class FixProcessor {
errorLength = error.length;
errorEnd = errorOffset + errorLength;
errorRange = new SourceRange(errorOffset, errorLength);
- node = new NodeLocator.con1(errorOffset).searchWithin(unit);
- coveredNode = new NodeLocator.con2(errorOffset, errorOffset + errorLength)
+ node = new NodeLocator(errorOffset).searchWithin(unit);
+ coveredNode = new NodeLocator(errorOffset, errorOffset + errorLength)
.searchWithin(unit);
// analyze ErrorCode
ErrorCode errorCode = error.errorCode;
@@ -813,7 +813,7 @@ class FixProcessor {
DartType parameterType = parameterElement.type;
if (parameterType is InterfaceType && parameterType.isDartCoreFunction) {
ExecutableElement element = new MethodElementImpl('', -1);
- parameterType = new FunctionTypeImpl.con1(element);
+ parameterType = new FunctionTypeImpl(element);
}
if (parameterType is! FunctionType) {
return;

Powered by Google App Engine
This is Rietveld 408576698