8008174: DocTree API should provide start and end positions for tree nodes

Adding DocSourcePositions to allow access to DocTree starting/ending position

Co-authored-by: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Reviewed-by: jjg, darcy
This commit is contained in:
Jan Lahoda 2013-04-17 15:54:24 +02:00
parent 38909b134a
commit 77b43bacfd
9 changed files with 488 additions and 14 deletions

View file

@ -59,7 +59,7 @@ public interface SourcePositions {
/**
* Gets the ending position of tree within file. If tree is not found within
* file, or if the starting position is not available,
* file, or if the ending position is not available,
* return {@link javax.tools.Diagnostic#NOPOS}.
* The returned position must be at the end of the yield of this tree,
* that is for any sub-tree of this tree, the following must hold: