Skip to content

Commit

Permalink
evaluation of private methods
Browse files Browse the repository at this point in the history
  • Loading branch information
niktrop committed Mar 5, 2014
1 parent 7eefa8b commit 7e68fd8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -59,6 +59,7 @@ case class ScalaMethodEvaluator(objectEvaluator: Evaluator, _methodName: String,
val allMethods = referenceType.allMethods()
allMethods.toList.collect {
case method if !localMethod && method.name() == methodName => (method, 1)
case method if !localMethod && method.name().endsWith("$$" + methodName) => (method, 1) //private method, maybe from parent class
case method if localMethod && method.name() == localMethodName => (method, 1)
case method if localMethod && method.name.startsWith(methodName + "$") => (method, 2)
case method if localMethod && method.name.contains(methodName + "$") => (method, 3)
Expand Down

0 comments on commit 7e68fd8

Please sign in to comment.