-
Notifications
You must be signed in to change notification settings - Fork 52
ArbitraryTypeReader.NameMapper #22
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
Conversation
| * @param nameMapper The name mapper from the implicit scope, or the default name mapper if not found | ||
| * @return The name mapper to be used in current implicit scope | ||
| */ | ||
| def get(implicit nameMapper: NameMapper = DefaultNameMapper) = nameMapper |
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.
hmm, not sure how I feel about the name get here, usually we made such implicit instance summon helper method the apply method.
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.
Will change it :)
0985ebe to
77bfd9f
Compare
|
LGTM, @joprice wanna take a look as well? |
| config = c.Expr[Config](Ident(TermName("config"))), | ||
| path = c.Expr[String](Ident(TermName("path")))).splice | ||
| path = c.Expr[String](Ident(TermName("path"))), | ||
| mapper = c.Expr[NameMapper](q"""net.ceedubs.ficus.readers.NameMapper()""")).splice |
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.
I think you want to add _root_ here to preserve hygiene (since someone could use this inside a package which contains a subpackage named net. See the notes on hygiene here http://docs.scala-lang.org/overviews/quasiquotes/hygiene.
A new way to define name conventions to use in ficus
77bfd9f to
eaa655d
Compare
|
@kailuowang @joprice Fixed all the comments, instead the one in the tests, Where I tried to follow the convention of the rest of the tests. |
A new way to define name conventions to use in ficus
Continue to #13