WiredWizard
WiredWizard
MCMetalama Community
Created by WiredWizard on 11/20/2023 in #technical-questions
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)].
3 replies