Update FuncType.java

This commit is contained in:
sunyinqi0508
2021-03-23 20:12:15 +08:00
committed by GitHub
parent 8cbc495c57
commit ae3ef07c97
@@ -8,13 +8,11 @@ import java.util.List;
/** Semantic information for a function or method. */ /** Semantic information for a function or method. */
public class FuncType extends Type { public class FuncType extends Type {
/** Types of parameters. */ /** Types of parameters. */
public final List<ValueType> parameters; public final List<ValueType> parameters;
/** Function's return type. */ /** Function's return type. */
public final ValueType returnType; public final ValueType returnType;
/** Create a FuncType returning RETURNTYPE0, initially parameterless. */ /** Create a FuncType returning RETURNTYPE0, initially parameterless. */
public FuncType(ValueType returnType0) { public FuncType(ValueType returnType0) {
this(new ArrayList<>(), returnType0); this(new ArrayList<>(), returnType0);