public static int firstStatPos ( JCTree tree ) { if ( tree . hasTag ( BLOCK ) && ( ( JCBlock ) tree ) . stats . nonEmpty ( ) ) return ( ( JCBlock ) tree ) . stats . head . pos ; else return tree . pos ; }
The position of the first statement in a block or the position of the block itself if it is empty .