Skip to content

Commit

Permalink
make context a little bit more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
nic11 committed Jan 16, 2025
1 parent 33727af commit d9e2182
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion antigo/src/antigo/ResolvedContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ std::ostream& operator<<(std::ostream& os, const ResolvedContext& self) {
os << " | (" << msg.type << ") " << ApplyIndent{msg.strval, " " + std::string(msg.type.size(), ' ') + " "} << "\n";
}
// os << "> " << entry.sourceLoc.func << "\n";
os << " ╰-- " << entry.sourceLoc.filename << ":" << entry.sourceLoc.line << " - " << entry.sourceLoc.func;
if (!entry.messages.empty()) {
os << " ╰-- ";
} else {
os << " o-- ";
}
os << entry.sourceLoc.filename << ":" << entry.sourceLoc.line << " - " << entry.sourceLoc.func;
if (entryIdx + 1 != self.entries.size()) {
os << '\n';
}
Expand Down

0 comments on commit d9e2182

Please sign in to comment.