doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring having all details in the method's description. Using self-closing tags saves half the lines, and prevents contributors from thinking that they should write the argument or return documentation there.
This commit is contained in:
@@ -8,42 +8,34 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_class_documentation" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
<return type="String" />
|
||||
<description>
|
||||
Returns the documentation string that was previously set with [code]godot_nativescript_set_class_documentation[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_method_documentation" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
<argument index="0" name="method" type="StringName">
|
||||
</argument>
|
||||
<return type="String" />
|
||||
<argument index="0" name="method" type="StringName" />
|
||||
<description>
|
||||
Returns the documentation string that was previously set with [code]godot_nativescript_set_method_documentation[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_property_documentation" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
<argument index="0" name="path" type="StringName">
|
||||
</argument>
|
||||
<return type="String" />
|
||||
<argument index="0" name="path" type="StringName" />
|
||||
<description>
|
||||
Returns the documentation string that was previously set with [code]godot_nativescript_set_property_documentation[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_signal_documentation" qualifiers="const">
|
||||
<return type="String">
|
||||
</return>
|
||||
<argument index="0" name="signal_name" type="StringName">
|
||||
</argument>
|
||||
<return type="String" />
|
||||
<argument index="0" name="signal_name" type="StringName" />
|
||||
<description>
|
||||
Returns the documentation string that was previously set with [code]godot_nativescript_set_signal_documentation[/code].
|
||||
</description>
|
||||
</method>
|
||||
<method name="new" qualifiers="vararg">
|
||||
<return type="Variant">
|
||||
</return>
|
||||
<return type="Variant" />
|
||||
<description>
|
||||
Constructs a new object of the base type with a script of this type already attached.
|
||||
[i]Note[/i]: Any arguments passed to this function will be ignored and not passed to the native constructor function. This will change with in a future API extension.
|
||||
|
||||
Reference in New Issue
Block a user