-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify macro compat #533
base: 2.4.x
Are you sure you want to change the base?
Conversation
…esult in methodNotAllowed.
routes.appendBeforeFilter(Route(transformers, () => fun)) | ||
} | ||
|
||
private[scalatra] def after0(transformers: RouteTransformer*)(fun: => Any): Unit = { | ||
protected def appendAfterFilter(transformers: RouteTransformer*)(fun: => Any): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to change this access modifier? #511 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It enables a library user to use this method, in the case he does not want or can not use the macro.
This looks good to me. I share @seratch's question about the visibility change. I am not a macro expert, so I'm relying heavily on the tests still passing with my 👍 . |
This PR re-structures code and fixes some warnings:
macroutils
package