Skip to content

Commit 73eb3bd

Browse files
committed
drop _impl
1 parent 3b2806a commit 73eb3bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jvm/src/main/scala/org/portablescala/reflect/Reflect.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ object Reflect {
1414
// so that their metadata (the types involved etc.) don't pollute `Reflect`'s metadata.
1515
// This enables using `Reflect`'s methods without `scala-reflect` JAR
1616
// https://github.com/scala/bug/issues/8090
17+
// https://github.com/xeno-by/sbt-example-paradise210/issues/1#issuecomment-20996354
1718
object Macros {
1819
/** Magic to get cross-compiling access to `blackbox.Context` with a fallback
1920
* on `macros.Context`, without deprecation warning in any Scala version.
@@ -47,7 +48,7 @@ object Reflect {
4748
}
4849
}
4950

50-
def lookupLoadableModuleClass_impl(
51+
def lookupLoadableModuleClass(
5152
c: BlackboxContext { type PrefixType = Reflect.type })(
5253
fqcn: c.Expr[String]): c.Expr[Option[LoadableModuleClass]] = {
5354
import c.universe._
@@ -57,7 +58,7 @@ object Reflect {
5758
}
5859
}
5960

60-
def lookupInstantiatableClass_impl(
61+
def lookupInstantiatableClass(
6162
c: BlackboxContext { type PrefixType = Reflect.type })(
6263
fqcn: c.Expr[String]): c.Expr[Option[InstantiatableClass]] = {
6364
import c.universe._
@@ -91,7 +92,7 @@ object Reflect {
9192
* Fully-qualified name of the module class, including its trailing `$`
9293
*/
9394
def lookupLoadableModuleClass(fqcn: String): Option[LoadableModuleClass] =
94-
macro Macros.lookupLoadableModuleClass_impl
95+
macro Macros.lookupLoadableModuleClass
9596

9697
/** Reflectively looks up a loadable module class.
9798
*
@@ -140,7 +141,7 @@ object Reflect {
140141
* Fully-qualified name of the class
141142
*/
142143
def lookupInstantiatableClass(fqcn: String): Option[InstantiatableClass] =
143-
macro Macros.lookupInstantiatableClass_impl
144+
macro Macros.lookupInstantiatableClass
144145

145146
/** Reflectively looks up an instantiatable class.
146147
*

0 commit comments

Comments
 (0)