summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ImportNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/nodes/ImportNode.java')
-rw-r--r--src/ast/nodes/ImportNode.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ast/nodes/ImportNode.java b/src/ast/nodes/ImportNode.java
index f26c0d0..97e3404 100644
--- a/src/ast/nodes/ImportNode.java
+++ b/src/ast/nodes/ImportNode.java
@@ -26,7 +26,7 @@ public class ImportNode implements Node {
}
@Override
- public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
+ public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting, FunctionType ft) {
ArrayList<SemanticError> errors = new ArrayList<>();
if (isFrom) {
@@ -34,7 +34,7 @@ public class ImportNode implements Node {
ST.insert(names.get(i), this.typeCheck(), _nesting, null);
}
} else {
- errors.addAll(dottedName.checkSemantics(ST, _nesting));
+ errors.addAll(dottedName.checkSemantics(ST, _nesting, ft));
}
if (importAs) {
@@ -49,7 +49,9 @@ public class ImportNode implements Node {
return new ImportType();
}
- // NOTE: we do not want to provide a code generation for this statement
+ /**
+ * NOTE: we do not want to provide a code generation for this statement
+ */
@Override
public String codeGeneration() {
return "";