Morgan :)

Results 393 comments of Morgan :)

It's easy to offer libraries on top that make it _look_ like execution is in isolation: https://github.com/dart-lang/language/blob/main/working/macros/dart_model/macro_client/lib/class_generator_macro.dart And these can then do optimization behind the scenes, leaving the option to...

Thanks Remi. Are you saying you want one macro application to do all that work--or is it okay to have one macro applications per data model class? I think the...

Execution order mostly depends on imports: as long as there are no imports from model.dart onto main.dart, model.dart macros can execute and complete before main.dart macro run at all. If...

Dart requires everything to be findable via imports from an entrypoint, so that would require a change independent of macros.

I don't think that's possible. But anyway it's unrelated to _this_ issue, which is for a specific discussion about the work in progress.

Moved to the "breaking changes" milestone with the expectation that we close this discussion as part of finalizing the hostmacro protocol, not that we do it.

I think this will naturally come with the switch to `dart_model`. A macro's initial query, whether explicitly or implicitly made, probably includes the class the annotation is applied to, then...

Yes, that's fair; maybe it only makes sense in combination with "rounds". Which I think also come under "only do this if it turns out to be easier" :)

I think this is related to #3879 `Consider whether to loosen "must match the original" in augmentation spec`.

Thanks Jake! Sorry, I should have been clearer: I think it's only a good fit for some macros, so it would only be a v1 launch, with phase 1-2 to...