| 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 989968174a3023da781e5f66ea40df12f0074ea2..73a4beef69a9690582eeb22eeb0a5d0ea316545b 100644
|
| --- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
|
| +++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
|
| @@ -233,7 +233,7 @@ class AssistProcessor {
|
| DartType type = declaredIdentifier.identifier.bestType;
|
| if (type is InterfaceType || type is FunctionType) {
|
| _configureTargetLocation(node);
|
| - Set<LibraryElement> librariesToImport = new Set<LibraryElement>();
|
| + Set<Source> librariesToImport = new Set<Source>();
|
| typeSource = utils.getTypeSource(type, librariesToImport);
|
| addLibraryImports(change, unitLibraryElement, librariesToImport);
|
| } else {
|
| @@ -285,7 +285,7 @@ class AssistProcessor {
|
| String typeSource;
|
| {
|
| _configureTargetLocation(node);
|
| - Set<LibraryElement> librariesToImport = new Set<LibraryElement>();
|
| + Set<Source> librariesToImport = new Set<Source>();
|
| typeSource = utils.getTypeSource(type, librariesToImport);
|
| addLibraryImports(change, unitLibraryElement, librariesToImport);
|
| }
|
| @@ -337,7 +337,7 @@ class AssistProcessor {
|
| String typeSource;
|
| if (type is InterfaceType || type is FunctionType) {
|
| _configureTargetLocation(node);
|
| - Set<LibraryElement> librariesToImport = new Set<LibraryElement>();
|
| + Set<Source> librariesToImport = new Set<Source>();
|
| typeSource = utils.getTypeSource(type, librariesToImport);
|
| addLibraryImports(change, unitLibraryElement, librariesToImport);
|
| } else {
|
| @@ -1002,7 +1002,7 @@ class AssistProcessor {
|
| String name = (node as SimpleIdentifier).name;
|
| // prepare type
|
| DartType type = parameterElement.type;
|
| - Set<LibraryElement> librariesToImport = new Set<LibraryElement>();
|
| + Set<Source> librariesToImport = new Set<Source>();
|
| String typeCode = utils.getTypeSource(type, librariesToImport);
|
| // replace parameter
|
| if (type.isDynamic) {
|
|
|