lib/rules/script-indent.js
function getActualLineIndentText(line) {
            let actualText = actualLineIndentTexts.get(line)
            if (actualText === undefined) {
                const lineText = getLineText(line)
                const index = lineText.search(/\S/u)
                if (index >= 0) {
                    actualText = lineText.slice(0, index)
                } else {
                    actualText = lineText
                }
                actualLineIndentTexts.set(line, actualText)
            }
            return actualText
        }
function getActualLineIndentText(line) {
            let actualText = actualLineIndentTexts.get(line)
            if (actualText === undefined) {
                const lineText = getLineText(line)
                const index = lineText.search(/\S/u)
                if (index >= 0) {
                    actualText = lineText.slice(0, index)
                } else {
                    actualText = lineText
                }
                actualLineIndentTexts.set(line, actualText)
            }
            return actualText
        }
function getActualLineIndentText ( line ) { let actualText = actualLineIndentTexts . get ( line ) if ( actualText === undefined ) { const lineText = getLineText ( line ) const index = lineText . search ( / \S / u ) if ( index >= 0 ) { actualText = lineText . slice ( 0 , index ) } else { actualText = lineText } actualLineIndentTexts . set ( line , actualText ) } return actualText }
Get the actual indent text of the line which the given line is on.
@param {number} line The line no.
@returns {string} The text of actual indent.
Get the actual indent text of the line which the given line is on .