summaryrefslogtreecommitdiff
path: root/src/ast/nodes/DottedNameNode.java
diff options
context:
space:
mode:
authorgeno <gabriele.genovese2@studio.unibo.it>2024-06-30 13:36:37 +0200
committergeno <gabriele.genovese2@studio.unibo.it>2024-06-30 13:36:37 +0200
commitafff6a80cd58f7787efa1398f7c8cbdce8989323 (patch)
treee6021201d6e7049da640687c7ce61c898aaea4d8 /src/ast/nodes/DottedNameNode.java
parentaaa97e2e41c0aa17a6f99099dd39bb73a935fe02 (diff)
fixed warnings, better formatting, final added where possible
Diffstat (limited to 'src/ast/nodes/DottedNameNode.java')
-rw-r--r--src/ast/nodes/DottedNameNode.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ast/nodes/DottedNameNode.java b/src/ast/nodes/DottedNameNode.java
index df86c99..23f14c1 100644
--- a/src/ast/nodes/DottedNameNode.java
+++ b/src/ast/nodes/DottedNameNode.java
@@ -11,6 +11,7 @@ import org.antlr.v4.runtime.tree.TerminalNode;
* Node for the `dooted_name` statement of the grammar.
*/
public class DottedNameNode implements Node {
+
protected ArrayList<TerminalNode> names;
public DottedNameNode(ArrayList<TerminalNode> names) {
@@ -19,7 +20,7 @@ public class DottedNameNode implements Node {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- ArrayList<SemanticError> errors = new ArrayList<SemanticError>();
+ ArrayList<SemanticError> errors = new ArrayList();
for (int i = 0; i < names.size(); ++i) {
ST.insert(names.get(i).toString(), this.typeCheck(), _nesting, null);