Format with stylua
This commit is contained in:
@@ -33,9 +33,9 @@ local c_function_extractor = function(node)
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
retrieve = "first",
|
retrieve = "first",
|
||||||
node_type = "primitive_type",
|
node_type = "primitive_type",
|
||||||
extract = true,
|
extract = true,
|
||||||
},
|
},
|
||||||
c_params,
|
c_params,
|
||||||
}
|
}
|
||||||
@@ -50,15 +50,15 @@ local c_function_extractor = function(node)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local has_return_statement = function()
|
local has_return_statement = function()
|
||||||
-- function implementation
|
-- function implementation
|
||||||
if res.return_statement then
|
if res.return_statement then
|
||||||
return res.return_statement
|
return res.return_statement
|
||||||
-- function prototype
|
-- function prototype
|
||||||
elseif res.function_declarator and res.primitive_type and res.primitive_type[1] ~= "void" then
|
elseif res.function_declarator and res.primitive_type and res.primitive_type[1] ~= "void" then
|
||||||
return res.primitive_type
|
return res.primitive_type
|
||||||
end
|
end
|
||||||
-- not found
|
-- not found
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user