Modifier and Type | Field and Description |
---|---|
FUNCTION |
checktype |
java.util.LinkedList<VarDecl> |
locals |
java.lang.String |
name |
java.util.LinkedList<Formal> |
params |
Type |
returnType |
Expr |
returnVal |
java.util.LinkedList<Stmt> |
stmts |
boolean |
synced |
Constructor and Description |
---|
MethodDecl(Type returnType,
boolean synced,
java.lang.String name,
java.util.LinkedList<Formal> params,
java.util.LinkedList<VarDecl> locals,
java.util.LinkedList<Stmt> stmts,
Expr returnVal) |
Modifier and Type | Method and Description |
---|---|
Exp |
accept(TreeVisitor v) |
Type |
accept(TypeVisitor v) |
void |
accept(Visitor v)
Visitor pattern dispatch.
|
public Type returnType
public boolean synced
public java.lang.String name
public java.util.LinkedList<Formal> params
public java.util.LinkedList<VarDecl> locals
public java.util.LinkedList<Stmt> stmts
public Expr returnVal
public FUNCTION checktype
public void accept(Visitor v)
public Type accept(TypeVisitor v)