Fix `ScriptLanguageExtension::_find_function` documentation

This commit is contained in:
Emmanuel Leblond 2023-12-26 12:24:56 +01:00
parent 13a0d6e9b2
commit 0124b513cd
No known key found for this signature in database
GPG Key ID: C360860E645EFFC0
2 changed files with 4 additions and 3 deletions

View File

@ -107,7 +107,7 @@ void ScriptLanguageExtension::_bind_methods() {
GDVIRTUAL_BIND(_supports_builtin_mode);
GDVIRTUAL_BIND(_supports_documentation);
GDVIRTUAL_BIND(_can_inherit_from_file);
GDVIRTUAL_BIND(_find_function, "class_name", "function_name");
GDVIRTUAL_BIND(_find_function, "function", "code");
GDVIRTUAL_BIND(_make_function, "class_name", "function_name", "function_args");
GDVIRTUAL_BIND(_open_in_external_editor, "script", "line", "column");
GDVIRTUAL_BIND(_overrides_external_editor);

View File

@ -114,9 +114,10 @@
</method>
<method name="_find_function" qualifiers="virtual const">
<return type="int" />
<param index="0" name="class_name" type="String" />
<param index="1" name="function_name" type="String" />
<param index="0" name="function" type="String" />
<param index="1" name="code" type="String" />
<description>
Returns the line where the function is defined in the code, or [code]-1[/code] if the function is not present.
</description>
</method>
<method name="_finish" qualifiers="virtual">