returns a 0-based index of the right leaf of the tree . assumes the leaves had been indexed from 1 concode_field_sep PlaceHolder placeHolder concode_field_sep int leftIndex concode_elem_sep boolean constraintMatchesTreeTop concode_elem_sep boolean findStateOnAgenda concode_elem_sep BinaryTransition.Side getBinarySide concode_elem_sep boolean isEquivalentCategory concode_elem_sep boolean isTemporary concode_elem_sep int headIndex
int function ( Tree arg0 ) { if ( arg0 . isLeaf ( ) ) { CoreLabel loc0 = ErasureUtils . uncheckedCast ( arg0 . loc0 ( ) ) ; return loc0 . index ( ) - 1 ; } return rightIndex ( arg0 . children ( ) [ arg0 . children ( ) . length - 1 ] ) ; }