From f92b87e5f8025e8ac7de1eaaf8fafbaf10521e7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 31 Aug 2018 22:38:28 +0200 Subject: [PATCH] DocData: Fix return type listed as "var" instead of "Variant" --- doc/classes/Array.xml | 36 ++++++++++++++++++------------------ doc/classes/Dictionary.xml | 4 ++-- doc/classes/String.xml | 2 +- doc/classes/TileSet.xml | 18 ++++++++++++++++++ doc/classes/Transform.xml | 8 ++++---- doc/classes/Transform2D.xml | 8 ++++---- editor/doc/doc_data.cpp | 4 ++-- editor/doc/doc_dump.cpp | 2 +- 8 files changed, 50 insertions(+), 32 deletions(-) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 162e2d3e05f..7097fd8bf0c 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -84,14 +84,14 @@ - + Append an element at the end of the array (alias of [method push_back]). - + Returns the last element of the array if the array is not empty (size>0). @@ -100,7 +100,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -131,7 +131,7 @@ - + Return the amount of times an element is in the array. @@ -155,7 +155,7 @@ - + Remove the first occurrence of a value from the array. @@ -164,7 +164,7 @@ - + @@ -175,14 +175,14 @@ - + Searches the array in reverse order for a value and returns its index or -1 if not found. - + Returns the first element of the array if the array is not empty (size>0). @@ -191,7 +191,7 @@ - + Return true if the array contains given value. @@ -213,7 +213,7 @@ - + Insert a new element at a given position in the array. The position must be valid, or at the end of the array ([code]pos == size()[/code]). @@ -225,42 +225,42 @@ - + Return maximum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. - + Return minimum value contained in the array if all elements are of comparable types. If the elements can't be compared, [code]null[/code] is returned. - + Remove the last element of the array. - + Remove the first element of the array. - + Append an element at the end of the array. - + Add an element at the beginning of the array. @@ -283,7 +283,7 @@ - + diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index 800a76ccf19..06c996e13e7 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -35,7 +35,7 @@ - + Erase a dictionary key/value pair by key. @@ -44,7 +44,7 @@ - + Return true if the dictionary has a given key. diff --git a/doc/classes/String.xml b/doc/classes/String.xml index a42f508b593..d404c32b38b 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -339,7 +339,7 @@ - + diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index a30d12d6b76..b98161e4837 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -44,6 +44,14 @@ + + + + + + + + @@ -54,6 +62,16 @@ + + + + + + + + + + diff --git a/doc/classes/Transform.xml b/doc/classes/Transform.xml index 24c009d922c..09edfe42354 100644 --- a/doc/classes/Transform.xml +++ b/doc/classes/Transform.xml @@ -141,18 +141,18 @@ - + - + Transforms the given [Vector3], [Plane], or [AABB] by this transform. - + - + Inverse-transforms the given [Vector3], [Plane], or [AABB] by this transform. diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index b38d9a1a865..bf0a745aa86 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -143,18 +143,18 @@ - + - + Transforms the given [Vector2] or [Rect2] by this transform. - + - + Inverse-transforms the given [Vector2] or [Rect2] by this transform. diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index bbe52bdc76a..c90b2b14b3b 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -505,7 +505,7 @@ void DocData::generate(bool p_basic_types) { ad.name = arginfo.name; if (arginfo.type == Variant::NIL) - ad.type = "var"; + ad.type = "Variant"; else ad.type = Variant::get_type_name(arginfo.type); @@ -518,7 +518,7 @@ void DocData::generate(bool p_basic_types) { if (mi.return_val.type == Variant::NIL) { if (mi.return_val.name != "") - method.return_type = "var"; + method.return_type = "Variant"; } else { method.return_type = Variant::get_type_name(mi.return_val.type); } diff --git a/editor/doc/doc_dump.cpp b/editor/doc/doc_dump.cpp index adbe23dcd5f..06d35c4d3af 100644 --- a/editor/doc/doc_dump.cpp +++ b/editor/doc/doc_dump.cpp @@ -142,7 +142,7 @@ void DocDump::dump(const String &p_file) { if (arginfo.hint == PROPERTY_HINT_RESOURCE_TYPE) type_name = arginfo.hint_string; else if (arginfo.type == Variant::NIL) - type_name = "var"; + type_name = "Variant"; else type_name = Variant::get_type_name(arginfo.type);