mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 07:11:04 +01:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user