diff options
author | Geequlim <geequlim@gmail.com> | 2019-06-26 20:21:42 +0800 |
---|---|---|
committer | geequlim <geequlim@gmail.com> | 2019-08-11 13:30:15 +0800 |
commit | 666ed89011551ae7691c8eeeb3fff74e17b48020 (patch) | |
tree | de25d18a89465cf45856cf8484e0f4ed669e632c /modules/gdscript/language_server/gdscript_extend_parser.h | |
parent | 9618b0c63e3330865350bd8bbc6a9d2faf9dd26c (diff) | |
download | redot-engine-666ed89011551ae7691c8eeeb3fff74e17b48020.tar.gz |
Add generate script api to dictionary support
Expose GDScriptLanguageProtocol singleton and classes for editor plugins (Not visiable in class tree)
Fix minor bug in symbol resolve
Diffstat (limited to 'modules/gdscript/language_server/gdscript_extend_parser.h')
-rw-r--r-- | modules/gdscript/language_server/gdscript_extend_parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/language_server/gdscript_extend_parser.h b/modules/gdscript/language_server/gdscript_extend_parser.h index e2da500d0d..397951aa1c 100644 --- a/modules/gdscript/language_server/gdscript_extend_parser.h +++ b/modules/gdscript/language_server/gdscript_extend_parser.h @@ -65,6 +65,9 @@ class ExtendGDScriptParser : public GDScriptParser { void parse_class_symbol(const GDScriptParser::ClassNode *p_class, lsp::DocumentSymbol &r_symbol); void parse_function_symbol(const GDScriptParser::FunctionNode *p_func, lsp::DocumentSymbol &r_symbol); + Dictionary dump_function_api(const GDScriptParser::FunctionNode *p_func) const; + Dictionary dump_class_api(const GDScriptParser::ClassNode *p_class) const; + String parse_documentation(int p_line, bool p_docs_down = false); const lsp::DocumentSymbol *search_symbol_defined_at_line(int p_line, const lsp::DocumentSymbol &p_parent) const; @@ -87,6 +90,7 @@ public: const lsp::DocumentSymbol *get_member_symbol(const String &p_name, const String &p_subclass = "") const; const Array &get_member_completions(); + Dictionary generate_api() const; Error parse(const String &p_code, const String &p_path); }; |