feat(kotlin) Automatically add return annotation for functions

References #78
This commit is contained in:
danymat
2022-03-09 10:01:07 +01:00
parent 92827d0a1c
commit db5fd708f7

View File

@@ -32,6 +32,11 @@ template.data = {
}
local nodes = nodes_utils:matching_nodes_from(node, tree)
local res = extractors:extract_from_matched(nodes)
-- Force return type as Kotlin parser does not differenciate return types
-- https://github.com/danymat/neogen/issues/78#issuecomment-1062677446
res[i.Return] = { true }
return res
end,
},