@@ -53,7 +53,7 @@ local function_tree = {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
parent = {
|
parent = {
|
||||||
class = { "class_declaration", "interface_declaration" },
|
class = { "class_declaration", "interface_declaration", "record_declaration" },
|
||||||
func = { "method_declaration", "constructor_declaration" },
|
func = { "method_declaration", "constructor_declaration" },
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -124,6 +124,20 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
["record_declaration"] = {
|
||||||
|
["0"] = {
|
||||||
|
extract = function(node)
|
||||||
|
local results = {}
|
||||||
|
local tree = { { retrieve = "all", node_type = "identifier", extract = true } }
|
||||||
|
local nodes = nodes_utils:matching_nodes_from(node, tree)
|
||||||
|
local res = extractors:extract_from_matched(nodes)
|
||||||
|
|
||||||
|
return {
|
||||||
|
[i.ClassName] = res.identifier
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ end
|
|||||||
--- with multiple annotation conventions.
|
--- with multiple annotation conventions.
|
||||||
---@tag neogen-changelog
|
---@tag neogen-changelog
|
||||||
---@toc_entry Changes in neogen plugin
|
---@toc_entry Changes in neogen plugin
|
||||||
neogen.version = "2.19.3"
|
neogen.version = "2.19.4"
|
||||||
--minidoc_afterlines_end
|
--minidoc_afterlines_end
|
||||||
|
|
||||||
return neogen
|
return neogen
|
||||||
|
|||||||
Reference in New Issue
Block a user