@@ -42,11 +42,13 @@ It is built with only standard library dependencies. It additionally ships with
4242 - [ visit_method] ( #visit_method )
4343 - [ BasicVisitor] ( #basicvisitor )
4444 - [ MutationVisitor] ( #mutationvisitor )
45+ - [ WithEnvironment] ( #withenvironment )
4546- [ Language server] ( #language-server )
4647 - [ textDocument/formatting] ( #textdocumentformatting )
4748 - [ textDocument/inlayHint] ( #textdocumentinlayhint )
4849 - [ syntaxTree/visualizing] ( #syntaxtreevisualizing )
4950- [ Customization] ( #customization )
51+ - [ Ignoring code] ( #ignoring-code )
5052 - [ Plugins] ( #plugins )
5153 - [ Languages] ( #languages )
5254- [ Integration] ( #integration )
@@ -320,10 +322,6 @@ Baked into this syntax is the ability to provide exceptions to file name pattern
320322stree write " **/{[!schema]*,*}.rb"
321323```
322324
323- ## Formatting
324-
325-
326-
327325## Library
328326
329327Syntax Tree can be used as a library to access the syntax tree underlying Ruby source code.
@@ -580,13 +578,13 @@ class MyVisitor < Visitor
580578 include WithEnvironment
581579
582580 def visit_ident (node )
583- # find_local will return a Local for any local variables or arguments present in the current environment or nil if
584- # the identifier is not a local
581+ # find_local will return a Local for any local variables or arguments
582+ # present in the current environment or nil if the identifier is not a local
585583 local = current_environment.find_local(node)
586584
587- puts local.type # print the type of the local (:variable or :argument)
588- puts local.definitions # print the array of locations where this local is defined
589- puts local.usages # print the array of locations where this local occurs
585+ puts local.type # the type of the local (:variable or :argument)
586+ puts local.definitions # the array of locations where this local is defined
587+ puts local.usages # the array of locations where this local occurs
590588 end
591589end
592590```
0 commit comments