[mod] tidy
This commit is contained in:
parent
b0e18a87ac
commit
529b57d628
8 changed files with 19 additions and 29 deletions
|
|
@ -7,6 +7,7 @@ import module namespace docs="lsp/docs" at "docs.xqm";
|
|||
import module namespace rpc = 'rpc' at 'jsonrpc.xqm';
|
||||
import module namespace lspt = 'lsp-typedefs' at 'lsp-typedefs.xqm';
|
||||
import module namespace pos="lsp/position" at "position.xqm";
|
||||
import module namespace syms="lsp/symbols" at "providers/documentSymbols.xqm";
|
||||
|
||||
declare variable $lsp-text:methods:=map{
|
||||
"textDocument/didOpen": lsp-text:didOpen#1,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import module namespace hnd="lsp/handlers" at "../handlers.xqm";
|
|||
import module namespace lspt = 'lsp-typedefs' at "../lsp-typedefs.xqm";
|
||||
|
||||
declare function syms:list($parse as element(),$syms as lspt:DocumentSymbol* :=() )
|
||||
{
|
||||
as lspt:DocumentSymbol*{
|
||||
let $actions as hnd:actionMap :={
|
||||
"ContextValueDecl": syms:action#2,
|
||||
"VarDecl": syms:VarDecl#2,
|
||||
|
|
@ -18,6 +18,7 @@ declare function syms:list($parse as element(),$syms as lspt:DocumentSymbol* :=(
|
|||
return $result?result
|
||||
};
|
||||
|
||||
(:~ just trace :)
|
||||
declare function syms:action($parse as element(),$state as hnd:Result )
|
||||
as hnd:Result{
|
||||
hnd:Result($state?result,true()) ,message(name($parse),"ACTION: ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue