class RubyLsp::Requests::ShowSyntaxTree
Show syntax tree is a custom LSP request that displays the AST for the current document or for the current selection in a new tab.
Example¶ ↑
# Executing the Ruby LSP: Show syntax tree command will display the AST for the document 1 + 1 # (program (statements ((binary (int "1") + (int "1")))))
Public Class Methods
new(document, range)
Calls superclass method