summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ArglistNode.java
diff options
context:
space:
mode:
authorEmanuele Grasso <96300448+L0P0P@users.noreply.github.com>2024-07-06 09:47:25 +0200
committerGitHub <noreply@github.com>2024-07-06 09:47:25 +0200
commitf0692ff5f9e39cbd1c203e9d5abebf55a3d0f6fc (patch)
tree36518af3f04a751ba5bb8158c3f005cfa3e8c7c3 /src/ast/nodes/ArglistNode.java
parent8aa8b5834953cab15c0687608f4fafea2e6c61be (diff)
Fixed the print of the ast and some warnings (#19)
Co-authored-by: Santo Cariotti <santo@dcariotti.me>
Diffstat (limited to 'src/ast/nodes/ArglistNode.java')
-rw-r--r--src/ast/nodes/ArglistNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/ArglistNode.java b/src/ast/nodes/ArglistNode.java
index 425e4c6..a0ea25b 100644
--- a/src/ast/nodes/ArglistNode.java
+++ b/src/ast/nodes/ArglistNode.java
@@ -19,7 +19,7 @@ public class ArglistNode implements Node {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- ArrayList<SemanticError> errors = new ArrayList();
+ ArrayList<SemanticError> errors = new ArrayList<>();
for (var arg : arguments) {
if (arg instanceof ExprNode) {