fix(lua): missing return statement for function type

This commit is contained in:
kevinhwang91
2022-02-01 03:34:37 +08:00
parent 6e56ec6e49
commit efdb89228e

View File

@@ -15,7 +15,13 @@ local function_extractor = function(node, type)
{ retrieve = "all", node_type = "spread", extract = true }, { retrieve = "all", node_type = "spread", extract = true },
}, },
}, },
{
retrieve = "first",
node_type = "block",
subtree = {
{ retrieve = "first", node_type = "return_statement", extract = true }, { retrieve = "first", node_type = "return_statement", extract = true },
},
}
} }
if type == "local" then if type == "local" then