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

Method normalizeVarType

src/main/java/matcher/type/Analysis.java:809–819  ·  view source on GitHub ↗
(ClassInstance cls, CommonClasses common)

Source from the content-addressed store, hash-verified

807 }
808
809 private static ClassInstance normalizeVarType(ClassInstance cls, CommonClasses common) {
810 if (!cls.isPrimitive()) return cls;
811
812 char id = cls.getId().charAt(0);
813
814 if (id == 'Z' || id == 'C' || id == 'B' || id == 'S') {
815 return common.INT;
816 } else {
817 return cls;
818 }
819 }
820
821 private static class QueueElement {
822 QueueElement(int dstIndex, ExecState srcState) {

Callers

nothing calls this directly

Calls 2

isPrimitiveMethod · 0.80
getIdMethod · 0.65

Tested by

no test coverage detected