HybridTsrg2

private object HybridTsrg2

Serializer for the hybrid TSRG2 RemapCacheBuilder.assembleForge writes. Its own object because it is pure text emission over a finished mapping tree — no downloads, no jars, no cache layout.

Functions

Link copied to clipboard
private fun appendMembers(sb: StringBuilder, c: MappingTree.ClassMapping, srgNs: Int)

c's tab-indented member lines: <srg> <named> for fields, <srg> <desc> <named> for methods. An element missing either name — or a method missing its descriptor — is skipped: it has nothing to map.

Link copied to clipboard
fun emit(asm: MemoryMappingTree): String

Serialize asm as the hybrid TSRG2 forge_gradle reads: a class identity line (readable on both sides) followed by that class's tab-indented member lines.