summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ParamlistNode.java
diff options
context:
space:
mode:
authorL0P0P <grassoemanuele@live.com>2024-06-26 11:44:58 +0200
committerL0P0P <grassoemanuele@live.com>2024-06-26 11:44:58 +0200
commit9e6c17cb44bc165e315ec039a0e09183716d2037 (patch)
tree4a64fd37fa9b2483b88a5f33a37c6b9b51812d81 /src/ast/nodes/ParamlistNode.java
parentfc712f94a7ed8554d8d44f4965be367354a7e670 (diff)
Semantic check for function declaration and function invocation
Diffstat (limited to 'src/ast/nodes/ParamlistNode.java')
-rw-r--r--src/ast/nodes/ParamlistNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/ParamlistNode.java b/src/ast/nodes/ParamlistNode.java
index a097c19..144eb13 100644
--- a/src/ast/nodes/ParamlistNode.java
+++ b/src/ast/nodes/ParamlistNode.java
@@ -21,7 +21,7 @@ public class ParamlistNode implements Node {
ArrayList<SemanticError> errors = new ArrayList<SemanticError>();
for (var param : params) {
- errors.addAll(param.checkSemantics(ST, _nesting + 1));
+ errors.addAll(param.checkSemantics(ST, _nesting));
}
return errors;