Add location information to diagnostics. (#385)

Add simple mocking and testing of diagnostic emission to ensure this
works.
This commit is contained in:
Richard Smith
2021-03-18 21:05:54 -07:00
committed by GitHub
parent b2455d8dba
commit d1757d9979
26 changed files with 621 additions and 172 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
namespace Carbon {
auto ParseTree::Parser::Parse(TokenizedBuffer& tokens,
DiagnosticEmitter& /*unused*/) -> ParseTree {
TokenDiagnosticEmitter& /*unused*/) -> ParseTree {
ParseTree tree(tokens);
// We expect to have a 1:1 correspondence between tokens and tree nodes, so