diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-30 17:47:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-30 17:47:58 +0100 |
commit | 926a7dffd6660841a80e0db2502bfac6f17bca0f (patch) | |
tree | aa201acc570a66c27ace968d61a2a7d3bc05f3cb /modules/gdscript/editor/gdscript_docgen.h | |
parent | f390b86acd22e2722d79e20b9a42454e59c451d0 (diff) | |
parent | 5e7cda3405b82f70f8d832a70b7ac64c9c1ec2f6 (diff) | |
download | redot-engine-926a7dffd6660841a80e0db2502bfac6f17bca0f.tar.gz |
Merge pull request #87421 from dalexeev/gds-docgen-use-autoload-singleton-name
GDScript: Use autoload singleton name in `GDScriptDocGen`
Diffstat (limited to 'modules/gdscript/editor/gdscript_docgen.h')
-rw-r--r-- | modules/gdscript/editor/gdscript_docgen.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdscript/editor/gdscript_docgen.h b/modules/gdscript/editor/gdscript_docgen.h index a326c02c5f..651a4fb198 100644 --- a/modules/gdscript/editor/gdscript_docgen.h +++ b/modules/gdscript/editor/gdscript_docgen.h @@ -39,10 +39,13 @@ class GDScriptDocGen { using GDP = GDScriptParser; using GDType = GDP::DataType; - static String _get_script_path(const String &p_path); + static HashMap<String, String> singletons; // Script path to singleton name. + + static String _get_script_name(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); + static void _generate_docs(GDScript *p_script, const GDP::ClassNode *p_class); public: static void generate_docs(GDScript *p_script, const GDP::ClassNode *p_class); |