File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ final class _Canonicalization {
94
94
if (ancestor is ! ElementImpl2 ) {
95
95
if (ancestor is LibraryElementImpl ) {
96
96
components.insert (0 , ancestor.identifier);
97
- } else if (ancestor is AugmentableElement ) {
98
- components.insert (0 , ancestor.identifier);
99
97
} else {
100
98
throw Exception ('${ancestor .runtimeType } is not an ElementImpl2' );
101
99
}
@@ -141,7 +139,8 @@ final class _Canonicalization {
141
139
var confidence = highestScore - secondHighestScore;
142
140
final canonicalLibrary = librariesByScore.last;
143
141
144
- if (confidence < _modelElement.config.ambiguousReexportScorerMinConfidence) {
142
+ if (confidence <
143
+ _modelElement.config.ambiguousReexportScorerMinConfidence) {
145
144
var libraryNames = librariesByScore.map ((l) => l.name);
146
145
var message = '$libraryNames -> ${canonicalLibrary .name } '
147
146
'(confidence ${confidence .toStringAsPrecision (4 )})' ;
You can’t perform that action at this time.
0 commit comments