@@ -72,7 +72,7 @@ object Splicer {
72
72
/** Tree interpreter that evaluates the tree */
73
73
private class Interpreter (pos : Position , classLoader : ClassLoader )(implicit ctx : Context ) extends AbstractInterpreter {
74
74
75
- type Res = Object
75
+ type Result = Object
76
76
77
77
/** Returns the interpreted result of interpreting the code a call to the symbol with default arguments.
78
78
* Return Some of the result or None if some error happen during the interpretation.
@@ -226,7 +226,7 @@ object Splicer {
226
226
/** Tree interpreter that tests if tree can be interpreted */
227
227
private class CanBeInterpreted (implicit ctx : Context ) extends AbstractInterpreter {
228
228
229
- type Res = Boolean
229
+ type Result = Boolean
230
230
231
231
def apply (tree : Tree ): Boolean = interpretTree(tree)(Map .empty)
232
232
@@ -246,17 +246,17 @@ object Splicer {
246
246
247
247
/** Abstract Tree interpreter that can interpret calls to static methods with quoted or transparent arguments */
248
248
private abstract class AbstractInterpreter (implicit ctx : Context ) {
249
- type Env = Map [Name , Res ]
250
- type Res
249
+ type Env = Map [Name , Result ]
250
+ type Result
251
251
252
- protected def interpretQuote (tree : Tree )(implicit env : Env ): Res
253
- protected def interpretTypeQuote (tree : Tree )(implicit env : Env ): Res
254
- protected def interpretLiteral (value : Any )(implicit env : Env ): Res
255
- protected def interpretTastyContext ()(implicit env : Env ): Res
256
- protected def interpretStaticMethodCall (fn : Tree , args : => List [Res ])(implicit env : Env ): Res
257
- protected def unexpectedTree (tree : Tree )(implicit env : Env ): Res
252
+ protected def interpretQuote (tree : Tree )(implicit env : Env ): Result
253
+ protected def interpretTypeQuote (tree : Tree )(implicit env : Env ): Result
254
+ protected def interpretLiteral (value : Any )(implicit env : Env ): Result
255
+ protected def interpretTastyContext ()(implicit env : Env ): Result
256
+ protected def interpretStaticMethodCall (fn : Tree , args : => List [Result ])(implicit env : Env ): Result
257
+ protected def unexpectedTree (tree : Tree )(implicit env : Env ): Result
258
258
259
- protected final def interpretTree (tree : Tree )(implicit env : Env ): Res = tree match {
259
+ protected final def interpretTree (tree : Tree )(implicit env : Env ): Result = tree match {
260
260
case Apply (TypeApply (fn, _), quoted :: Nil ) if fn.symbol == defn.QuotedExpr_apply =>
261
261
interpretQuote(quoted)
262
262
0 commit comments