diff options
author | L0P0P <grassoemanuele@live.com> | 2024-06-26 10:06:12 +0200 |
---|---|---|
committer | L0P0P <grassoemanuele@live.com> | 2024-06-26 10:06:12 +0200 |
commit | fc712f94a7ed8554d8d44f4965be367354a7e670 (patch) | |
tree | 46345272a4cbbc6cc7c868e1bf9288bb44dbfc7f /src/ast/nodes/FuncdefNode.java | |
parent | 9bb71e36feb60d886f1eb04f03daaa7bcf343355 (diff) |
Using child
Diffstat (limited to 'src/ast/nodes/FuncdefNode.java')
-rw-r--r-- | src/ast/nodes/FuncdefNode.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast/nodes/FuncdefNode.java b/src/ast/nodes/FuncdefNode.java index 341a28d..742f670 100644 --- a/src/ast/nodes/FuncdefNode.java +++ b/src/ast/nodes/FuncdefNode.java @@ -26,6 +26,7 @@ public class FuncdefNode implements Node { @Override public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) { ArrayList<SemanticError> errors = new ArrayList<SemanticError>(); + ST.insert(this.name.toString(), this.block.typeCheck(), _nesting, ""); HashMap<String, STentry> HM = new HashMap<String, STentry>(); |