Skip to content
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

Open
wants to merge 10 commits into
base: 2.4.x
Choose a base branch
from
Open

Conversation

dozed
Copy link
Member

@dozed dozed commented Aug 1, 2015

This PR re-structures code and fixes some warnings:

  • renamed internal methods
  • macros use internal methods
  • drops the MacrosCompat traits and uses only the unifying compatibility layer (stubs, implicits, scala.reflect.macros.runtime.Context)
  • all macro-related code is grouped in the macroutils package

routes.appendBeforeFilter(Route(transformers, () => fun))
}

private[scalatra] def after0(transformers: RouteTransformer*)(fun: => Any): Unit = {
protected def appendAfterFilter(transformers: RouteTransformer*)(fun: => Any): Unit = {
Copy link
Member

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)

Copy link
Member Author

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.

@rossabaker
Copy link
Member

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 👍 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants