File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -541,9 +541,10 @@ abstract class ModelElement extends Canonicalization
541541
542542 // Avoid claiming canonicalization for elements outside of this element's
543543 // defining package.
544- // TODO(jcollins-g): Make the else block unconditional.
544+ // TODO(srawlins): Make the else block unconditional, so that we always
545+ // exclude cross-package exports.
545546 if (candidateLibraries.isNotEmpty &&
546- ! candidateLibraries.any ((l) => l.package = = definingLibrary.package)) {
547+ candidateLibraries.any ((l) => l.package ! = definingLibrary.package)) {
547548 warn (PackageWarning .reexportedPrivateApiAcrossPackages,
548549 message: definingLibrary.package.fullyQualifiedName,
549550 referredFrom: candidateLibraries);
You can’t perform that action at this time.
0 commit comments