Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Make AugmentResponse more like MacroExecutionResult #106

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

jakemac53
Copy link
Contributor

In preparation for adding builder types, and making AugmentResponse not visible in the macro APIs any more.

Will do that after #104 is also merged, as we really need both.

In preparation for adding builder types, and making AugmentResponse not visible in the macro APIs any more.

Will do that after #104 is also merged, as we really need both.
@jakemac53 jakemac53 force-pushed the macro-execution-result branch from 3ffffc5 to e5c685e Compare October 17, 2024 21:18
Copy link
Contributor

@davidmorgan davidmorgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please see my comment on #104 for some general thoughts also relevant here, but this can be merged as is.

One possible way to proceed afterwards would be to have the methods return void, instead of returning a value, augmentations are accumulated in the Scope. (Dependency injection scope, not a Dart scope). This avoids mentioning AugmentationResult and seems like it should work well with builders.

tool/dart_model_generator/lib/generate_dart_model.dart Outdated Show resolved Hide resolved
@jakemac53 jakemac53 merged commit 18c0ffb into main Oct 21, 2024
45 checks passed
@jakemac53 jakemac53 deleted the macro-execution-result branch October 21, 2024 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants