List < ? extends Tree > function ( Tree arg0 ) { if ( arg0 . getParent ( ) == null ) return Collections . emptyList ( ) ; List < Tree > loc0 = new ArrayList < Tree > ( ) ; arg0 = arg0 . getParent ( ) ; while ( arg0 != null ) { loc0 . add ( 0 , arg0 ) ; arg0 = arg0 . getParent ( ) ; } return loc0 ; }
return a list of all ancestors of this node . the first node of list is the root and the last is the parent of this node . concode_field_sep PlaceHolder placeHolder concode_field_sep Collection<ParseTree> findAllTokenNodes concode_elem_sep ParserRuleContext getRootOfSubtreeEnclosingRegion concode_elem_sep List<ParseTree> descendants concode_elem_sep String getNodeText concode_elem_sep String getNodeText concode_elem_sep boolean isAncestorOf concode_elem_sep List<Tree> getChildren concode_elem_sep List<ParseTree> getDescendants concode_elem_sep Tree findNodeSuchThat concode_elem_sep Collection<ParseTree> findAllRuleNodes concode_elem_sep void stripChildrenOutOfRange concode_elem_sep String toStringTree concode_elem_sep String toStringTree concode_elem_sep String toStringTree concode_elem_sep List<ParseTree> findAllNodes concode_elem_sep void _findAllNodes