Interface RNCRange
- All Known Implementing Classes:
RNCAttribute,RNCDatatypesDecl,RNCDefine,RNCDiv,RNCDocument,RNCElement,RNCExternal,RNCFileReferenceNode,RNCInclude,RNCNamespaceDecl,RNCNode,RNCStart
public interface RNCRange
Represents a range (start/end offset pair) within an RNC document, with
access to the owning
RNCDocument.
Use case: implemented by all RNC AST node types (RNCNode
and subclasses) to provide offset-based positioning for language features
such as diagnostics, code actions, folding, and highlighting.
- Author:
- Angelo ZERR
-
Method Details
-
getStart
int getStart()Returns the start offset of the node.- Returns:
- the start offset of the node.
-
getEnd
int getEnd()Returns the end offset of the node.- Returns:
- the end offset of the node.
-
getOwnerDocument
RNCDocument getOwnerDocument()Returns the owner document.- Returns:
- the owner document.
-