lib/service/comment-directive.js
function locationInRangeLoc(loc, start, end) {
    if (loc.line < start.line || end.line < loc.line) {
        return false
    }
    if (loc.line === start.line) {
        if (start.column > loc.column) {
            return false
        }
    }
    if (loc.line === end.line) {
        if (loc.column >= end.column) {
            return false
        }
    }
    return true
}
function locationInRangeLoc(loc, start, end) {
    if (loc.line < start.line || end.line < loc.line) {
        return false
    }
    if (loc.line === start.line) {
        if (start.column > loc.column) {
            return false
        }
    }
    if (loc.line === end.line) {
        if (loc.column >= end.column) {
            return false
        }
    }
    return true
}
function locationInRangeLoc ( loc , start , end ) { if ( loc . line < start . line || end . line < loc . line ) { return false } if ( loc . line === start . line ) { if ( start . column > loc . column ) { return false } } if ( loc . line === end . line ) { if ( loc . column >= end . column ) { return false } } return true }
Check whether the location is in range location.
@param {object} loc The location.
@param {object} start The start location.
@param {object} end The end location.
@returns {boolean} `true` if the location is in range location.
Check whether the location is in range location .