diff --git a/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java b/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java index da232eca..e10cb578 100644 --- a/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java +++ b/enigma/src/main/java/org/quiltmc/enigma/api/translation/representation/TypeDescriptor.java @@ -13,6 +13,36 @@ import java.util.Map; import java.util.function.UnaryOperator; +/** + * Represents a Java type descriptor. + * Type descriptors are used to represent the types of elements such as arguments, fields, and method returns. + *

+ * Type descriptors can be formatted two different ways: + *

+ *

+ * + * When representing an array type in a type descriptor, the descriptor is prefixed by {@code [}, such as {@code [I} or {@code [Lpackage/Class;}. + */ public class TypeDescriptor implements Translatable { protected final String desc;