diff --git a/core/object/script_language.h b/core/object/script_language.h index 3fd56c2f15b..e34e5060a4c 100644 --- a/core/object/script_language.h +++ b/core/object/script_language.h @@ -35,6 +35,7 @@ #include "core/io/resource.h" #include "core/templates/map.h" #include "core/templates/pair.h" +#include "editor/doc_data.h" class ScriptLanguage; @@ -145,6 +146,10 @@ public: virtual void set_source_code(const String &p_code) = 0; virtual Error reload(bool p_keep_state = false) = 0; +#ifdef TOOLS_ENABLED + virtual const Vector &get_documentation() const = 0; +#endif // TOOLS_ENABLED + virtual bool has_method(const StringName &p_method) const = 0; virtual MethodInfo get_method_info(const StringName &p_method) const = 0; @@ -305,6 +310,7 @@ public: virtual Ref