diff options
| author | Juan Linietsky | 2016-09-12 10:52:29 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-09-12 10:53:31 -0300 |
| commit | 37f1e86108a84c9b371e37c3854d8a03c8aea743 (patch) | |
| tree | eca23dd9556df6a398b0a667009f34a200ef363d /core | |
| parent | 78f92dbcb9b193fb7a100ca7096c15a6899199fc (diff) | |
| download | godot-37f1e86108a84c9b371e37c3854d8a03c8aea743.tar.gz godot-37f1e86108a84c9b371e37c3854d8a03c8aea743.tar.zst godot-37f1e86108a84c9b371e37c3854d8a03c8aea743.zip | |
Diffstat (limited to 'core')
| -rw-r--r-- | core/script_language.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/script_language.h b/core/script_language.h index 1b037e908..53af4c74d 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -122,6 +122,7 @@ public: virtual void get_script_method_list(List<MethodInfo> *p_list) const=0; virtual void get_script_property_list(List<PropertyInfo> *p_list) const=0; + virtual int get_member_line(const StringName& p_member) const { return 0; } Script() {} }; @@ -207,7 +208,26 @@ public: virtual bool has_named_classes() const=0; virtual int find_function(const String& p_function,const String& p_code) const=0; virtual String make_function(const String& p_class,const String& p_name,const StringArray& p_args) const=0; + virtual Error complete_code(const String& p_code, const String& p_base_path, Object*p_owner,List<String>* r_options,String& r_call_hint) { return ERR_UNAVAILABLE; } + + struct LookupResult { + enum Type { + RESULT_SCRIPT_LOCATION, + RESULT_CLASS, + RESULT_CLASS_CONSTANT, + RESULT_CLASS_PROPERTY, + RESULT_CLASS_METHOD + }; + Type type; + Ref<Script> script; + String class_name; + String class_member; + int location; + }; + + virtual Error lookup_code(const String& p_code, const String& p_symbol,const String& p_base_path, Object*p_owner,LookupResult& r_result) { return ERR_UNAVAILABLE; } + virtual void auto_indent_code(String& p_code,int p_from_line,int p_to_line) const=0; virtual void add_global_constant(const StringName& p_variable,const Variant& p_value)=0; |
