function checkScope(scope){var undefinedVar=scope.set.get("undefined");if(!undefinedVar){return;}var references=undefinedVar.references;var defs=undefinedVar.defs;// Report non-initializing references (those are covered in defs below)
references.filter(function(ref){return!ref.init;}).forEach(function(ref){return report(ref.identifier);});defs.forEach(function(def){return report(def.name);});}
Checks the given scope for references to `undefined` and reports
all references found.
@param {escope.Scope} scope The scope to check.
@returns {void}