function checkVariable(variable) {
            astUtils.getModifyingReferences(variable.references).forEach(reference => {
                context.report({ node: reference.identifier, messageId: "unexpected" });
            });
        }
function checkVariable(variable) {
            astUtils.getModifyingReferences(variable.references).forEach(reference => {
                context.report({ node: reference.identifier, messageId: "unexpected" });
            });
        }
function checkVariable ( variable ) { astUtils . getModifyingReferences ( variable . references ) . forEach ( reference => { context . report ( { node : reference . identifier , messageId : "unexpected" } ) ; } ) ; }
Finds and reports references that are non initializer and writable.
@param {Variable} variable - A variable to check.
@returns {void}
Finds and reports references that are non initializer and writable .
Check variable references