feat(scraper): ignore subfields in function parameters
This commit is contained in:
parent
192be3b13f
commit
d29d2eab24
|
@ -54,6 +54,12 @@ local function extract_function_parameters(table_html: string, function_name: st
|
||||||
local name <const> = extract_node_text(name_node)
|
local name <const> = extract_node_text(name_node)
|
||||||
local types <const> = parse_parameter_types(extract_node_text(types_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
|
-- 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
|
if tr.attr ~= nil and tr.attr.class == "see_also_sublist" and is_populating_parameters_types then
|
||||||
local field = ast.create_node("variable", name)
|
local field = ast.create_node("variable", name)
|
||||||
|
|
Loading…
Reference in New Issue