Skip to content

Commit

Permalink
Small patch to fix macros revert in Dart SDK (#3732)
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins committed Mar 20, 2024
1 parent 8b94222 commit 7be9e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/model/package_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ class PubPackageBuilder implements PackageBuilder {

List<String> get _sdkFilesToDocument => [
for (var sdkLib in _sdk.sdkLibraries)
_sdk.mapDartUri(sdkLib.shortName)!.fullName,
// TODO(srawlins): This bit is temporary, here in order to unblock some
// unfortunate CI in the Dart SDK which is not designed well for when
// SDK libraries are _removed_.
if (!sdkLib.shortName.contains('macros'))
_sdk.mapDartUri(sdkLib.shortName)!.fullName,
];

/// Resolves a single library at [filePath] using the current analysis driver.
Expand Down

0 comments on commit 7be9e24

Please sign in to comment.