lib/rules/prefer-template.js
function getTopConcatBinaryExpression(node) {
    let currentNode = node;

    while (isConcatenation(currentNode.parent)) {
        currentNode = currentNode.parent;
    }
    return currentNode;
}
function getTopConcatBinaryExpression(node) {
    let currentNode = node;

    while (isConcatenation(currentNode.parent)) {
        currentNode = currentNode.parent;
    }
    return currentNode;
}
function getTopConcatBinaryExpression ( node ) { let currentNode = node ; while ( isConcatenation ( currentNode . parent ) ) { currentNode = currentNode . parent ; } return currentNode ; }
Gets the top binary expression node for concatenation in parents of a given node.
@param {ASTNode} node - A node to get.
@returns {ASTNode} the top binary expression node in parents of a given node.
Gets the top binary expression node for concatenation in parents of a given node .