edu.cornell.cs.cs4120.xi
Interface AbstractSyntaxNode

All Superinterfaces:
VisualizableTreeNode

public interface AbstractSyntaxNode
extends VisualizableTreeNode

Abstract syntax tree node for representing a Xi program.


Method Summary
 Position position()
          The source file position where this node occurs.
 
Methods inherited from interface edu.cornell.cs.cs4120.util.VisualizableTreeNode
children, label
 

Method Detail

position

Position position()
The source file position where this node occurs.

The start of the position should be the start of the leftmost token in this node, and the end of the position should be the end of the rightmost token in this node.

This is useful for error reporting.

Returns:
the position of this node