private void trackMessage ( NodeTraversal t , JsMessage message , String msgName , Node msgNode , boolean isUnnamedMessage ) { if ( ! isUnnamedMessage ) { MessageLocation location = new MessageLocation ( message , msgNode ) ; messageNames . put ( msgName , location ) ; } else { Var var = t . getScope ( ) . getVar ( msgName ) ; if ( var != null ) { unnamedMessages . put ( var , message ) ; } } }
Track a message for later retrieval .