File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ final class _Canonicalization {
9494 if (ancestor is ! ElementImpl2 ) {
9595 if (ancestor is LibraryElementImpl ) {
9696 components.insert (0 , ancestor.identifier);
97- } else if (ancestor is AugmentableElement ) {
98- components.insert (0 , ancestor.identifier);
9997 } else {
10098 throw Exception ('${ancestor .runtimeType } is not an ElementImpl2' );
10199 }
@@ -141,7 +139,8 @@ final class _Canonicalization {
141139 var confidence = highestScore - secondHighestScore;
142140 final canonicalLibrary = librariesByScore.last;
143141
144- if (confidence < _modelElement.config.ambiguousReexportScorerMinConfidence) {
142+ if (confidence <
143+ _modelElement.config.ambiguousReexportScorerMinConfidence) {
145144 var libraryNames = librariesByScore.map ((l) => l.name);
146145 var message = '$libraryNames -> ${canonicalLibrary .name } '
147146 '(confidence ${confidence .toStringAsPrecision (4 )})' ;
You can’t perform that action at this time.
0 commit comments