Rename Parser2 to Parser, and delete the original (#2383)

This commit is contained in:
Jon Ross-Perkins
2022-11-11 13:35:45 -08:00
committed by GitHub
parent cd93ae6618
commit 6433a1bab6
8 changed files with 128 additions and 1808 deletions
+2 -3
View File
@@ -16,8 +16,7 @@
#include "llvm/Support/raw_ostream.h"
#include "toolchain/lexer/token_kind.h"
#include "toolchain/parser/parse_node_kind.h"
#include "toolchain/parser/parser2.h"
#include "toolchain/parser/parser_impl.h"
#include "toolchain/parser/parser.h"
namespace Carbon {
@@ -28,7 +27,7 @@ auto ParseTree::Parse(TokenizedBuffer& tokens, DiagnosticConsumer& consumer)
TokenDiagnosticEmitter emitter(translator, consumer);
// Delegate to the parser.
return Parser2::Parse(tokens, emitter);
return Parser::Parse(tokens, emitter);
}
auto ParseTree::postorder() const -> llvm::iterator_range<PostorderIterator> {