Add global recursive option for nodes

This commit is contained in:
Daniel Mathiot
2021-09-29 15:01:26 +02:00
parent d99f86ca06
commit 19d5cd8c01
3 changed files with 33 additions and 14 deletions

View File

@@ -18,7 +18,8 @@ local function_extractor = function(node, type)
if type == "local" then
tree = {
{
retrieve = "first_recursive",
retrieve = "first",
recursive = true,
node_type = "function_definition",
subtree = tree,
},