Open felangel opened 4 months ago
Currently it's not possible to determine whether a constructor is a const constructor or not when building a macro. I would love to see isConst exposed via ConstructorDeclaration alongside isFactory
isConst
ConstructorDeclaration
isFactory
https://github.com/dart-lang/sdk/blob/6bc417dd17f5edb228e60b9aebb70650bf7d5f50/pkg/_macros/lib/src/api/introspection.dart#L286.
Thanks! This is useful to come back to but not super high priority right now so I'll move it to the backlog.
Currently it's not possible to determine whether a constructor is a const constructor or not when building a macro. I would love to see
isConst
exposed viaConstructorDeclaration
alongsideisFactory
https://github.com/dart-lang/sdk/blob/6bc417dd17f5edb228e60b9aebb70650bf7d5f50/pkg/_macros/lib/src/api/introspection.dart#L286.