Source
bool hasInExportedNamespace(Element element) { Element found = _exportedNamespace.get(element.name); if (found == null) return false; if (found == element) return true; // this checks more than just the name // Fix for #587, comparison between elements isn't reliable on windows. // for some reason. sigh. return found.runtimeType == element.runtimeType && found.nameOffset == element.nameOffset; }