lib/service/html-parser.js
function parse5NodeToToken(
    node,
    parentToken,
    html,
    sourceCodeStore,
    lastIndex
) {
    const type = NODENAME_TO_TYPE_MAP[node.nodeName]
        ? NODENAME_TO_TYPE_MAP[node.nodeName]
        : "HTMLElement"

    return TOKEN_BUILDERS[type](
        node,
        parentToken,
        html,
        sourceCodeStore,
        lastIndex
    )
}
function parse5NodeToToken(
    node,
    parentToken,
    html,
    sourceCodeStore,
    lastIndex
) {
    const type = NODENAME_TO_TYPE_MAP[node.nodeName]
        ? NODENAME_TO_TYPE_MAP[node.nodeName]
        : "HTMLElement"

    return TOKEN_BUILDERS[type](
        node,
        parentToken,
        html,
        sourceCodeStore,
        lastIndex
    )
}
function parse5NodeToToken ( node , parentToken , html , sourceCodeStore , lastIndex ) { const type = NODENAME_TO_TYPE_MAP [ node . nodeName ] ? NODENAME_TO_TYPE_MAP [ node . nodeName ] : "HTMLElement" return TOKEN_BUILDERS [ type ] ( node , parentToken , html , sourceCodeStore , lastIndex ) }
Node to ESLint token.
@param {object} node The node from parse5.
@param {object} parentToken The parent token.
@param {string} html The html source code to parse.
@param {SourceCodeStore} sourceCodeStore The sourceCodeStore.
@param {number} lastIndex The last index.
@returns {object} The ESLint token.
Node to ESLint token .