@@ -35,6 +35,7 @@ class LibraryScopedNameFinder {
35
35
// Reverse each import's export namespace so we can map elements to their
36
36
// library-local names. Note that the definedNames include a prefix if there
37
37
// is one.
38
+ // ignore: deprecated_member_use
38
39
for (final import in library.libraryImports) {
39
40
for (final entry in import.namespace.definedNames.entries) {
40
41
_namesByElement[entry.value] = entry.key;
@@ -79,6 +80,7 @@ class LibraryScopedNameFinder {
79
80
// If we're dealing with a typedef, we let it undergo the standard name
80
81
// lookup. Otherwise, we special case the function naming.
81
82
if (type.alias? .element is TypeAliasElement ) {
83
+ // ignore: deprecated_member_use
82
84
typeElement = type.alias! .element.aliasedElement? .enclosingElement;
83
85
} else {
84
86
return _getFunctionTypeName (type);
@@ -88,8 +90,8 @@ class LibraryScopedNameFinder {
88
90
typeElement == null ||
89
91
// This is a bare type param, like "T"
90
92
type is TypeParameterType ) {
91
- // ignore: deprecated_member_use_from_same_package
92
- return type.getDisplayString ();
93
+ // ignore: deprecated_member_use
94
+ return type.getDisplayString (withNullability : true );
93
95
}
94
96
95
97
return _getNamedElementTypeName (typeElement! , type);
0 commit comments