namespace std {
ostream &operator <<(ostream &out, const loader::ParsedSource &source) {
- out << "parsed source file" << endl;
+ out << "parsed sources" << endl;
+ out << "==============" << endl;
out << "declared objects: " << endl;
for (map<string, loader::Declaration *>::const_iterator i(source.Declarations().begin()), end(source.Declarations().end()); i != end; ++i) {
out << " - " << i->first << " of type " << i->second->TypeName() << endl;
for (set<string>::const_iterator i(source.Exports().begin()), end(source.Exports().end()); i != end; ++i) {
out << " - " << *i << endl;
}
+ out << endl;
return out;
}