Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorgan committed Oct 1, 2024
1 parent f1e86d5 commit 71c213d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/_macro_tool/lib/macro_tool.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MacroTool {
protocol: Protocol(
encoding: ProtocolEncoding.binary,
version: ProtocolVersion.macros1),
packageConfig: File(packageConfigPath).uri);
packageConfig: Uri.file(packageConfigPath));

final resolvedLibrary = (await analysisContext.currentSession
.getResolvedLibrary(scriptPath)) as ResolvedLibraryResult;
Expand All @@ -105,7 +105,7 @@ class MacroTool {
print('Macro output (patched to use augment library): '
'$_augmentationFilePath');
File(_augmentationFilePath).writeAsStringSync(augmentationUnits
.first.content
.single.content
// The analyzer produces augmentations in parts, but the CFE still
// wants them in augmentation libraries. Adjust the output accordingly.
.replaceAll('part of', 'augment library'));
Expand Down

0 comments on commit 71c213d

Please sign in to comment.