From 12c1f75602c15684d869415bba5ca25ad5e38dc3 Mon Sep 17 00:00:00 2001 From: nitrix Date: Mon, 3 Feb 2020 22:20:25 +0100 Subject: [PATCH] add fields to save the line and column in which the token corresponding to the node was found --- src/main/java/de/hsrm/compiler/Klang/nodes/Node.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/hsrm/compiler/Klang/nodes/Node.java b/src/main/java/de/hsrm/compiler/Klang/nodes/Node.java index b26e247..a8f033a 100644 --- a/src/main/java/de/hsrm/compiler/Klang/nodes/Node.java +++ b/src/main/java/de/hsrm/compiler/Klang/nodes/Node.java @@ -5,5 +5,8 @@ import de.hsrm.compiler.Klang.visitors.*; public abstract class Node { public Type type; + public int line; + public int col; + public abstract R welcome(Visitor v); } \ No newline at end of file