]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/parsing/Symbol.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / parsing / Symbol.java
diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/parsing/Symbol.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/parsing/Symbol.java
new file mode 100644 (file)
index 0000000..e17066e
--- /dev/null
@@ -0,0 +1,16 @@
+package org.simantics.scl.compiler.internal.parsing;
+
+import org.simantics.scl.compiler.errors.Locations;
+
+/**
+ * This class is the base class for all the nodes in an SCL abstract syntax tree.
+ * All nodes share a property {@link #location} that links the node
+ * to a position in the SCL source.
+ */
+public abstract class Symbol {
+    public long location = Locations.NO_LOCATION;
+    
+    public long getLocation() {
+        return location;
+    }
+}