mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-25 14:34:45 +00:00
refactor: port method symbol descriptors to Java
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user