diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/interpreter/ByteCode.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/interpreter/ByteCode.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/interpreter/ByteCode.scala b/src/compiler/scala/tools/nsc/interpreter/ByteCode.scala index dc4e173fff..4b8e0ae60c 100644 --- a/src/compiler/scala/tools/nsc/interpreter/ByteCode.scala +++ b/src/compiler/scala/tools/nsc/interpreter/ByteCode.scala @@ -29,6 +29,16 @@ object ByteCode { method.invoke(module, _: String).asInstanceOf[Option[Map[String, String]]] } + /** Scala sig bytes. + */ + def scalaSigBytesForPath(path: String) = + for { + module <- DECODER + method <- decoderMethod("scalaSigBytes", classOf[String]) + names <- method.invoke(module, path).asInstanceOf[Option[Array[Byte]]] + } + yield names + /** Attempts to retrieve case parameter names for given class name. */ def caseParamNamesForPath(path: String) = |