lib/rules/no-extra-semi.js
function checkForPartOfClassBody(firstToken) {
            for (let token = firstToken;
                token.type === "Punctuator" && !astUtils.isClosingBraceToken(token);
                token = sourceCode.getTokenAfter(token)
            ) {
                if (astUtils.isSemicolonToken(token)) {
                    report(token);
                }
            }
        }
function checkForPartOfClassBody(firstToken) {
            for (let token = firstToken;
                token.type === "Punctuator" && !astUtils.isClosingBraceToken(token);
                token = sourceCode.getTokenAfter(token)
            ) {
                if (astUtils.isSemicolonToken(token)) {
                    report(token);
                }
            }
        }
function checkForPartOfClassBody ( firstToken ) { for ( let token = firstToken ; token . type === "Punctuator" && ! astUtils . isClosingBraceToken ( token ) ; token = sourceCode . getTokenAfter ( token ) ) { if ( astUtils . isSemicolonToken ( token ) ) { report ( token ) ; } } }
Checks for a part of a class body.
This checks tokens from a specified token to a next MethodDefinition or the end of class body.

@param {Token} firstToken - The first token to check.
@returns {void}
Checks for a part of a class body . This checks tokens from a specified token to a next MethodDefinition or the end of class body .