void reportError ( Node n , Var var , String name ) { JSDocInfo info = NodeUtil . getBestJSDocInfo ( n ) ; if ( info == null || ! info . getSuppressions ( ) . contains ( "const" ) ) { Node declNode = var . getNode ( ) ; String declaredPosition = declNode . getSourceFileName ( ) + ":" + declNode . getLineno ( ) ; compiler . report ( JSError . make ( n , CONST_REASSIGNED_VALUE_ERROR , name , declaredPosition ) ) ; } }
Reports a reassigned constant error .