code: function leaveStatement(node) {
              const line = getActualLastToken(node).loc.end.line;
  
              // Update state.
              if (line !== lastStatementLine) {
                  reportFirstExtraStatementAndClear();
                  numberOfStatementsOnThisLine = 1;
                  lastStatementLine = line;
              }
          }
docs: Updates the state of this rule with the end line of leaving node to check with the next statement.
  
  @param {ASTNode} node - A node to check.
  @returns {void}