lib/service/MicroTemplateService.js
function findExpressionStatement(start, end) {
            let target = sourceCode.getNodeByRangeIndex(start)
            while (
                target &&
                target.range[1] <= end &&
                start <= target.range[0]
            ) {
                if (
                    target.type === "ExpressionStatement" &&
                    start === target.range[0] &&
                    target.range[1] === end
                ) {
                    return target
                }
                target = target.parent
            }
            return null
        }
function findExpressionStatement(start, end) {
            let target = sourceCode.getNodeByRangeIndex(start)
            while (
                target &&
                target.range[1] <= end &&
                start <= target.range[0]
            ) {
                if (
                    target.type === "ExpressionStatement" &&
                    start === target.range[0] &&
                    target.range[1] === end
                ) {
                    return target
                }
                target = target.parent
            }
            return null
        }
function findExpressionStatement ( start , end ) { let target = sourceCode . getNodeByRangeIndex ( start ) while ( target && target . range [ 1 ] <= end && start <= target . range [ 0 ] ) { if ( target . type === "ExpressionStatement" && start === target . range [ 0 ] && target . range [ 1 ] === end ) { return target } target = target . parent } return null }
Find the ExpressionStatement of range.
@param {number} start - The start of range.
@param {numnber} end - The end of range.
@returns {ExpressionStatement} The expression statement.
Find the ExpressionStatement of range .