File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -92,21 +92,15 @@ final class _Canonicalization {
92
92
Element2 ? ancestor = element;
93
93
while (ancestor != null ) {
94
94
if (ancestor is ! ElementImpl2 ) {
95
- if (ancestor is LibraryElementImpl ) {
95
+ if (ancestor is LibraryElement2 ) {
96
96
components.insert (0 , ancestor.identifier);
97
97
} else {
98
98
throw Exception ('${ancestor .runtimeType } is not an ElementImpl2' );
99
99
}
100
100
ancestor = ancestor.enclosingElement2;
101
101
} else {
102
102
components.insert (0 , ancestor.identifier);
103
- if (ancestor is LocalFunctionElementImpl ) {
104
- ancestor = (ancestor.wrappedElement.enclosingElement2
105
- as ExecutableElementImpl )
106
- .element;
107
- } else {
108
- ancestor = ancestor.enclosingElement2;
109
- }
103
+ ancestor = ancestor.enclosingElement2;
110
104
}
111
105
}
112
106
var buffer = StringBuffer ();
You can’t perform that action at this time.
0 commit comments