lib/service/html-parser.js
function defineRootTokenBuilder(Type) {
    return (node, _parentToken, html, sourceCodeStore, lastIndex) => {
        const token = new Type(html, 0, lastIndex, sourceCodeStore)
        token.children = buildChildTokens(
            node,
            token,
            html,
            sourceCodeStore,
            lastIndex
        )
        return token
    }
}
function defineRootTokenBuilder(Type) {
    return (node, _parentToken, html, sourceCodeStore, lastIndex) => {
        const token = new Type(html, 0, lastIndex, sourceCodeStore)
        token.children = buildChildTokens(
            node,
            token,
            html,
            sourceCodeStore,
            lastIndex
        )
        return token
    }
}
function defineRootTokenBuilder ( Type ) { return ( node , _parentToken , html , sourceCodeStore , lastIndex ) => { const token = new Type ( html , 0 , lastIndex , sourceCodeStore ) token . children = buildChildTokens ( node , token , html , sourceCodeStore , lastIndex ) return token } }
Define root token builder
@param {Class} Type The token type.
@returns {function} The token builder.
Define root token builder