feat(scraper): ignore subfields in function parameters
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/build-and-run Pipeline failed Details

This commit is contained in:
Aire-One 2023-11-17 23:42:39 +01:00
parent 192be3b13f
commit d29d2eab24
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ local function extract_function_parameters(table_html: string, function_name: st
local name <const> = extract_node_text(name_node)
local types <const> = parse_parameter_types(extract_node_text(types_node))
-- If the name contains a dot, then it's a nested field in a table
-- We don't support this yet, so we just ignore it
if name:match("%.") then
return nil
end
-- Add a field to the current parameter type record
if tr.attr ~= nil and tr.attr.class == "see_also_sublist" and is_populating_parameters_types then
local field = ast.create_node("variable", name)