@@ -137,15 +137,16 @@ fun classFileToString(classFile: File): String {
|
|||||||
ByteArrayInputStream(BitEncoding.decodeBytes(annotationDataEncoded)).use {
|
ByteArrayInputStream(BitEncoding.decodeBytes(annotationDataEncoded)).use {
|
||||||
input ->
|
input ->
|
||||||
|
|
||||||
out.write("\n------ simpleNames proto -----\n${DebugProtoBuf.StringTable.parseDelimitedFrom(input)}")
|
out.write("\n------ simpleNames proto -----\n${DebugProtoBuf.StringTable.parseDelimitedFrom(input)}")
|
||||||
out.write("\n------ qualifiedNames proto -----\n${DebugProtoBuf.QualifiedNameTable.parseDelimitedFrom(input)}")
|
out.write("\n------ qualifiedNames proto -----\n${DebugProtoBuf.QualifiedNameTable.parseDelimitedFrom(input)}")
|
||||||
|
|
||||||
when (classHeader!!.kind) {
|
when (classHeader!!.kind) {
|
||||||
KotlinClassHeader.Kind.PACKAGE_FACADE ->
|
KotlinClassHeader.Kind.PACKAGE_FACADE ->
|
||||||
out.write("\n------ package proto -----\n${DebugProtoBuf.Package.parseFrom(input, getExtensionRegistry())}")
|
out.write("\n------ package proto -----\n${DebugProtoBuf.Package.parseFrom(input, getExtensionRegistry())}")
|
||||||
|
|
||||||
KotlinClassHeader.Kind.CLASS ->
|
KotlinClassHeader.Kind.CLASS ->
|
||||||
out.write("\n------ class proto -----\n${DebugProtoBuf.Class.parseFrom(input, getExtensionRegistry())}")
|
out.write("\n------ class proto -----\n${DebugProtoBuf.Class.parseFrom(input, getExtensionRegistry())}")
|
||||||
|
|
||||||
else -> throw IllegalStateException()
|
else -> throw IllegalStateException()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user