lib/rules/no-var.js
function isOutsideOfScope(reference) {
        const scope = scopeNode.range;
        const id = reference.identifier.range;

        return id[0] < scope[0] || id[1] > scope[1];
    }
function isOutsideOfScope(reference) {
        const scope = scopeNode.range;
        const id = reference.identifier.range;

        return id[0] < scope[0] || id[1] > scope[1];
    }
function isOutsideOfScope ( reference ) { const scope = scopeNode . range ; const id = reference . identifier . range ; return id [ 0 ] < scope [ 0 ] || id [ 1 ] > scope [ 1 ] ; }
Checks whether a given reference is inside of the specified scope or not.

@param {eslint-scope.Reference} reference - A reference to check.
@returns {boolean} `true` if the reference is inside of the specified
scope.
Checks whether a given reference is inside of the specified scope or not .