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 authored and GitHub committed 2023-08-31 17:50:59 +00:00
1 parent 15f0818888
commit 3533850673
62 files changed
+519 -470

No files matched your search

+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()) {