summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/editor/gdscript_docgen.h
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-01-20 23:11:55 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-01-21 11:28:23 +0300
commit5e7cda3405b82f70f8d832a70b7ac64c9c1ec2f6 (patch)
tree1463f9012982f31af724338318fb9a6542d2dfbb /modules/gdscript/editor/gdscript_docgen.h
parent0bcc0e92b3f0ac57d4c4650722f347593a258572 (diff)
downloadredot-engine-5e7cda3405b82f70f8d832a70b7ac64c9c1ec2f6.tar.gz
GDScript: Use autoload singleton name in `GDScriptDocGen`
Diffstat (limited to 'modules/gdscript/editor/gdscript_docgen.h')
-rw-r--r--modules/gdscript/editor/gdscript_docgen.h5
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);