node_modules/@angular/language-service/src/ts_utils.js
/**
     * Return the node that most tightly encompass the specified `position`.
     * @param node
     * @param position
     */
Return the node that most tightly encompass the specified `position`.
@param node
@param position
Return the node that most tightly encompass the specified ` position ` . @param node @param position
function findTightestNode(node, position) {
        if (node.getStart() <= position && position < node.getEnd()) {
            return node.forEachChild(function (c) { return findTightestNode(c, position); }) || node;
        }
    }
function findTightestNode ( node , position ) { if ( node . getStart ( ) <= position && position < node . getEnd ( ) ) { return node . forEachChild ( function ( c ) { return findTightestNode ( c , position ) ; } ) || node ; } }
Return the node that most tightly encompass the specified `position`.
Return the node that most tightly encompass the specified ` position ` .