diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-04-23 00:24:42 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-04-23 00:24:42 -0600 |
commit | a1c15f046183373baf5deb66e77188e656806fb7 (patch) | |
tree | fc1a7f584e67dc583d335f09d5271a45ff7d9df4 /submit/ast/Param.java | |
parent | 5f28f80c4e25a56cd444914c2f0b3da5e7fdb088 (diff) | |
download | cminus-a1c15f046183373baf5deb66e77188e656806fb7.tar.gz cminus-a1c15f046183373baf5deb66e77188e656806fb7.zip |
Diffstat (limited to 'submit/ast/Param.java')
-rw-r--r-- | submit/ast/Param.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/submit/ast/Param.java b/submit/ast/Param.java index 478c6e2..921b179 100644 --- a/submit/ast/Param.java +++ b/submit/ast/Param.java @@ -20,17 +20,11 @@ public class Param extends AbstractNode implements Node { this.array = array; } - public VarType getType() { - return type; - } + public VarType getType() { return type; } - public String getId() { - return id; - } + public String getId() { return id; } - public boolean isArray() { - return array; - } + public boolean isArray() { return array; } public void toCminus(StringBuilder builder, final String prefix) { if (isArray()) { @@ -39,5 +33,4 @@ public class Param extends AbstractNode implements Node { builder.append(type).append(" ").append(id); } } - } |