diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-05 10:07:43 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-05 10:07:43 +0200 |
commit | b9bf46de9e46a4e356a4def177edefb1b74fa9e4 (patch) | |
tree | 950e6dd1658ee7c544f0363d6acd03d5af9ec86e /modules/gdscript/editor/gdscript_docgen.h | |
parent | c255acebe867b65bd7cd81a900c0e3144e2d472a (diff) | |
parent | 426ccba70e646d902ee3db52ec7219f31fb37e9b (diff) | |
download | redot-engine-b9bf46de9e46a4e356a4def177edefb1b74fa9e4.tar.gz |
Merge pull request #82067 from dalexeev/gds-docgen-fix-metatypes-and-values
GDScript DocGen: Fix and improve appearance of metatypes and values
Diffstat (limited to 'modules/gdscript/editor/gdscript_docgen.h')
-rw-r--r-- | modules/gdscript/editor/gdscript_docgen.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/gdscript/editor/gdscript_docgen.h b/modules/gdscript/editor/gdscript_docgen.h index 3357fb680c..a326c02c5f 100644 --- a/modules/gdscript/editor/gdscript_docgen.h +++ b/modules/gdscript/editor/gdscript_docgen.h @@ -36,8 +36,16 @@ #include "core/doc_data.h" class GDScriptDocGen { + using GDP = GDScriptParser; + using GDType = GDP::DataType; + + static String _get_script_path(const String &p_path); + static String _get_class_name(const GDP::ClassNode &p_class); + static void _doctype_from_gdtype(const GDType &p_gdtype, String &r_type, String &r_enum, bool p_is_return = false); + static String _docvalue_from_variant(const Variant &p_variant, int p_recursion_level = 1); + public: - static void generate_docs(GDScript *p_script, const GDScriptParser::ClassNode *p_class); + static void generate_docs(GDScript *p_script, const GDP::ClassNode *p_class); }; #endif // GDSCRIPT_DOCGEN_H |