Trying to override a method and pass an enum

I'm trying to create an OverrideMethodAspect to transform a method. I want to pass an enum value into the aspect attribute, but I get an error complaining about the enum being runtime and the aspect being compile time. What is the best way to accomplish this? I'm trying to decorate my methods with something like [ParserRule(SyntaxNodeType.Expression)].
2 Replies
Petr Onderka
Petr Onderka13mo ago
Hi, we prefer using Slack now, see https://discord.com/channels/1108042639565127740/1108407291209842838/1164523200231772190. Coincidentally (?), somebody just asked a very similar question there, I think that should answer your question: https://metalama.slack.com/archives/C03Q89ZGAQJ/p1700560350125159?thread_ts=1700514869.690389&cid=C03Q89ZGAQJ.
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
WiredWizard
WiredWizardOP13mo ago
Ah thank you, I will jump over there.
Want results from more Discord servers?
Add your server