diff options
| author | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-04-28 20:44:30 +0330 |
|---|---|---|
| committer | hkalbasi <hamidrezakalbasi@protonmail.com> | 2023-05-01 23:23:10 +0330 |
| commit | 6312fbf521e42e5a5ff193ceee6a8c7735be3a45 (patch) | |
| tree | cbaea739cd9f5e5c850d01c2f2b232da39076668 /docs/dev | |
| parent | 001607fdb4ac6a3059813451234097ce7c2f35de (diff) | |
| download | rust-6312fbf521e42e5a5ff193ceee6a8c7735be3a45.tar.gz rust-6312fbf521e42e5a5ff193ceee6a8c7735be3a45.zip | |
MIR episode 4
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index d748400b695..76080eca4e0 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp_ext.rs hash: be2f663a78beb7bd +lsp_ext.rs hash: 37ac44a0f507e05a If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: @@ -548,6 +548,18 @@ For debugging or when working on rust-analyzer itself. Returns a textual representation of the MIR of the function containing the cursor. For debugging or when working on rust-analyzer itself. +## Interpret Function + +**Method:** `rust-analyzer/interpretFunction` + +**Request:** `TextDocumentPositionParams` + +**Response:** `string` + +Tries to evaluate the function using internal rust analyzer knowledge, without compiling +the code. Currently evaluates the function under cursor, but will give a runnable in +future. Highly experimental. + ## View File Text **Method:** `rust-analyzer/viewFileText` |
