protected boolean isFirstVisit ( Object expression ) { if ( visited . contains ( expression ) ) { return false ; } visited . add ( expression ) ; return true ; }
Return true if the AST expression has not already been visited . If it is the first visit register the expression so that the next visit will return false .