[mlir][lsp] Add LSP support for attribute and type aliases
commit3bcc63e36ad4afc653ba2e2e92a553452252f92f
authorMogball <jeff@modular.com>
Thu, 24 Aug 2023 20:50:31 +0000 (24 13:50 -0700)
committerMogball <jeff@modular.com>
Fri, 25 Aug 2023 05:50:25 +0000 (25 05:50 +0000)
tree5c3ffd85ecd5360c4d7f1e1190f4d6e29d54b851
parent5a9a02f67b771fb2edcf0662146fb023892d8ec7
[mlir][lsp] Add LSP support for attribute and type aliases

This wires in attribute and type aliases into the MLIR LSP server. This
will allow goto definition and find references on attribute and type
references, which should make debugging locations and other metadata
easier.

Depends on D158781

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D158782
mlir/include/mlir/AsmParser/AsmParserState.h
mlir/lib/AsmParser/AsmParserState.cpp
mlir/lib/AsmParser/Parser.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/test/mlir-lsp-server/definition.test [copied from mlir/test/mlir-lsp-server/references.test with 52% similarity]
mlir/test/mlir-lsp-server/references.test