refactor: port method symbol descriptors to Java

This commit is contained in:
Algent committed 2026-09-04 21:55:28 +02:00
1 parent 16f4568c2d
commit 257d0e4a04
4 files changed
+35 -11

No files matched your search

@@ -84,7 +84,7 @@ class ScalaSignature(val bytes: Bytes) {
def full = ScalaSignatureParser.methodSymbolFull(this)
def info: TMethodType = evalT(infoId)
def jDesc = info.jDesc
def jDesc = ScalaSignatureParser.methodSymbolDescriptor(this)
}
case class ExternalSymbol(name: String) extends SymbolRef {
@@ -117,6 +117,11 @@ final class ScalaSignatureParser {
return symbol.owner().full() + "." + symbol.name();
}
static String methodSymbolDescriptor(Object value) {
ScalaSignature.MethodSymbol symbol = (ScalaSignature.MethodSymbol) value;
return symbol.info().jDesc();
}
static byte[] section(Bytes bytes) {
byte[] array = bytes.arr();
int start = bytes.pos();