Skip to content

Commit c41b86b

Browse files
authored
Remove reference to AugmentableElement, soon to be deleted (#4016)
1 parent 5dbd403 commit c41b86b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/src/model/canonicalization.dart

+2-3
Original file line numberDiff line numberDiff 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)})';

0 commit comments

Comments
 (0)