summaryrefslogtreecommitdiffstats
path: root/src/ast/types/Type.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/types/Type.java')
-rw-r--r--src/ast/types/Type.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ast/types/Type.java b/src/ast/types/Type.java
index 6bff8b9..6190106 100644
--- a/src/ast/types/Type.java
+++ b/src/ast/types/Type.java
@@ -1,26 +1,25 @@
package ast.types;
+import ast.nodes.*;
import java.util.ArrayList;
-
import semanticanalysis.SemanticError;
import semanticanalysis.SymbolTable;
-import ast.nodes.*;
/**
* A node which represents a type class.
*/
public class Type implements Node {
+
public boolean isEqual(Type A, Type B) {
- if (A.getClass().equals(B.getClass()))
- return true;
- else
- return false;
+ return A.getClass().equals(B.getClass());
}
+ @Override
public String toPrint(String s) {
return s;
}
+ @Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
// It is never invoked
return null;