is this node a hoisted function declaration ? a function declaration in the scope root is hoisted to the top of the scope . see #isfunctiondeclaration . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isStatement concode_elem_sep boolean isFunctionDeclaration concode_elem_sep boolean isForIn
boolean function ( Node arg0 ) { return isFunctionDeclaration ( arg0 ) && ( arg0 . getParent ( ) . getType ( ) == Token . SCRIPT || arg0 . getParent ( ) . getParent ( ) . getType ( ) == Token . FUNCTION ) ; }