rules/indent.js
function getFirstToken(element) {
                let token = sourceCode.getTokenBefore(element);

                while (astUtils.isOpeningParenToken(token) && token !== startToken) {
                    token = sourceCode.getTokenBefore(token);
                }
                return sourceCode.getTokenAfter(token);
            }
function getFirstToken(element) {
                let token = sourceCode.getTokenBefore(element);

                while (astUtils.isOpeningParenToken(token) && token !== startToken) {
                    token = sourceCode.getTokenBefore(token);
                }
                return sourceCode.getTokenAfter(token);
            }
function getFirstToken ( element ) { let token = sourceCode . getTokenBefore ( element ) ; while ( astUtils . isOpeningParenToken ( token ) && token !== startToken ) { token = sourceCode . getTokenBefore ( token ) ; } return sourceCode . getTokenAfter ( token ) ; }
Gets the first token of a given element, including surrounding parentheses.
@param {ASTNode} element A node in the `elements` list
@returns {Token} The first token of this element
Gets the first token of a given element including surrounding parentheses .