MCPcopy Create free account
hub / github.com/FabricMC/Matcher / accept

Method accept

src/main/java/matcher/type/ClassInstance.java:1077–1088  ·  view source on GitHub ↗
(ClassVisitor visitor, NameType nameType)

Source from the content-addressed store, hash-verified

1075 }
1076
1077 public void accept(ClassVisitor visitor, NameType nameType) {
1078 ClassNode cn = getMergedAsmNode();
1079 if (cn == null) throw new IllegalArgumentException("cls without asm node: "+this);
1080
1081 synchronized (Util.asmNodeSync) {
1082 if (nameType != NameType.PLAIN) {
1083 AsmClassRemapper.process(cn, new AsmRemapper(env, nameType), visitor);
1084 } else {
1085 cn.accept(visitor);
1086 }
1087 }
1088 }
1089
1090 public byte[] serialize(NameType nameType) {
1091 ClassWriter writer = new ClassWriter(0);

Callers 15

serializeMethod · 0.95
runInParallelMethod · 0.80
visitFileMethod · 0.80
propagateNamesMethod · 0.80
toStringMethod · 0.80
startMethod · 0.80
callMethod · 0.80
runProgressTaskMethod · 0.80
addCheckMenuItemMethod · 0.80
importMatchesMethod · 0.80
submitMatchesMethod · 0.80
appendJavaDeclarationMethod · 0.80

Calls 2

getMergedAsmNodeMethod · 0.95
processMethod · 0.95

Tested by

no test coverage detected