diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.dctools.fsm/src/org/eclipse/etrice/dctools/fsm/ast/nodes/DCAstWhitespaceNode.xtend')
-rw-r--r-- | plugins/org.eclipse.etrice.dctools.fsm/src/org/eclipse/etrice/dctools/fsm/ast/nodes/DCAstWhitespaceNode.xtend | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.etrice.dctools.fsm/src/org/eclipse/etrice/dctools/fsm/ast/nodes/DCAstWhitespaceNode.xtend b/plugins/org.eclipse.etrice.dctools.fsm/src/org/eclipse/etrice/dctools/fsm/ast/nodes/DCAstWhitespaceNode.xtend index c0017774f..1ff691fac 100644 --- a/plugins/org.eclipse.etrice.dctools.fsm/src/org/eclipse/etrice/dctools/fsm/ast/nodes/DCAstWhitespaceNode.xtend +++ b/plugins/org.eclipse.etrice.dctools.fsm/src/org/eclipse/etrice/dctools/fsm/ast/nodes/DCAstWhitespaceNode.xtend @@ -16,16 +16,18 @@ import org.eclipse.etrice.dctools.fsm.ast.nodes.DCAstNode import org.eclipse.xtend.lib.annotations.Accessors @Accessors -class DCAstWhitespaceNode extends DCAstNode { +class DCAstWhitespaceNode extends DCAstTextNode { String text - new(DCAstNode parent, int readTokens, String text) { - super(parent, readTokens) + new(DCAstNode parent, int readTokens, int pos, String text) { + super(parent, readTokens, pos, pos+text.length) this.text = text } override protected doPrint(String indent) { println(indent + "DCAstWhitespaceNode '" + text + "'") } + + override getText() { text } }
\ No newline at end of file |