Skip to content

Commit

Permalink
Merge pull request #86520 from touilleMan/fix-ScriptLanguageExtension…
Browse files Browse the repository at this point in the history
…-_find_function-documentation

Fix `ScriptLanguageExtension::_find_function` documentation
  • Loading branch information
akien-mga committed Jan 2, 2024
2 parents 60b2096 + 0124b51 commit 3dae50a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/object/script_language_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions doc/classes/ScriptLanguageExtension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 3dae50a

Please sign in to comment.