Moving lexer into a 'Lex' namespace. (#3170)

Continuing with #3070, this creates a `Lex` namespace for lexer. This is
probably the last namespace addition right now, and will be followed by
file moves, although I'll also share a PR separately moving member
classes out of TokenizedBuffer.
This commit is contained in:
Jon Ross-Perkins
2023-08-31 17:50:59 +00:00
committed by GitHub
parent 15f0818888
commit 3533850673
62 changed files with 519 additions and 470 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ void LanguageServer::OnDocumentSymbol(
llvm::MemoryBuffer::getMemBufferCopy(files_.at(file)));
auto buf = SourceBuffer::CreateFromFile(vfs, file);
auto lexed = TokenizedBuffer::Lex(*buf, NullDiagnosticConsumer());
auto lexed = Lex::TokenizedBuffer::Lex(*buf, NullDiagnosticConsumer());
auto parsed = Parse::Tree::Parse(lexed, NullDiagnosticConsumer(), nullptr);
std::vector<clang::clangd::DocumentSymbol> result;
for (const auto& node : parsed.postorder()) {