This allows for building an outline of the symbols and symbol tables within the IR. This allows for easy navigations to functions/modules and other symbol/symbol table operations within the IR.
Depends On D103728
Paths
| Differential D103729
[mlir-lsp-server] Add support for textDocument/documentSymbols ClosedPublic Authored by rriddle on Jun 4 2021, 5:07 PM.
Details Summary This allows for building an outline of the symbols and symbol tables within the IR. This allows for easy navigations to functions/modules and other symbol/symbol table operations within the IR. Depends On D103728
Diff Detail
Event TimelineHerald added subscribers: dcaballe, cota, teijeong and 16 others. · View Herald TranscriptJun 4 2021, 5:07 PM rriddle added a child revision: D103730: [mlir-lsp-server] Fix bug in symbol use/def tracking.Jun 4 2021, 5:07 PM This revision is now accepted and ready to land.Jun 10 2021, 9:59 AM This revision was landed with ongoing or failed builds.Jun 10 2021, 11:03 AM Closed by commit rGff81a2c95ddb: [mlir-lsp-server] Add support for textDocument/documentSymbols (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes. rriddle marked an inline comment as done.
Revision Contents
Diff 351218 mlir/include/mlir/Parser/AsmParserState.h
mlir/lib/Parser/AsmParserState.cpp
mlir/lib/Parser/Parser.cpp
mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.h
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/lib/Tools/mlir-lsp-server/lsp/Protocol.h
mlir/lib/Tools/mlir-lsp-server/lsp/Protocol.cpp
mlir/lib/Tools/mlir-lsp-server/lsp/Transport.cpp
mlir/test/mlir-lsp-server/document-symbols.test
mlir/test/mlir-lsp-server/initialize-params.test
|
Nit: I'd have this inside the else (the indenting here looks weird else as makes it feel like it is attached to block above).