mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 08:31:04 +01:00
Add location information to diagnostics. (#385)
Add simple mocking and testing of diagnostic emission to ensure this works.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user