code: function checkForBlock(node) {
              const scope = context.getScope();
  
              /*
               * In ES5, some node type such as `BlockStatement` doesn't have that scope.
               * `scope.block` is a different node in such a case.
               */
              if (scope.block === node) {
                  findVariablesInScope(scope);
              }
          }
docs: Find variables in the current scope.
  @param {ASTNode} node The node of the current scope.
  @returns {void}
  @private