diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-03 12:34:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-03 12:34:00 +0200 |
commit | c630c2001dbe2e25e0d372bd22ce85cdc2822eb0 (patch) | |
tree | ef0a55219c9b682c491194f42083780ede1a39ec /doc/classes | |
parent | 7bb963efe9083662baa356f56a2d5c368b96a9a0 (diff) | |
parent | 4ab605d14d0c18aeeded545e3cc453734df7abd7 (diff) |
Merge pull request #59633 from EricEzaM/better-code-complete-update
Improve sorting of Code Completion options.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ScriptLanguageExtension.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/ScriptLanguageExtension.xml b/doc/classes/ScriptLanguageExtension.xml index 7225d93030..d66bb6a7c7 100644 --- a/doc/classes/ScriptLanguageExtension.xml +++ b/doc/classes/ScriptLanguageExtension.xml @@ -378,6 +378,18 @@ </constant> <constant name="LOOKUP_RESULT_MAX" value="7" enum="LookupResultType"> </constant> + <constant name="LOCATION_LOCAL" value="0" enum="CodeCompletionLocation"> + The option is local to the location of the code completion query - e.g. a local variable. + </constant> + <constant name="LOCATION_PARENT_MASK" value="256" enum="CodeCompletionLocation"> + The option is from the containing class or a parent class, relative to the location of the code completion query. Perform a bitwise OR with the class depth (e.g. 0 for the local class, 1 for the parent, 2 for the grandparent, etc) to store the depth of an option in a the class or a parent class. + </constant> + <constant name="LOCATION_OTHER_USER_CODE" value="512" enum="CodeCompletionLocation"> + The option is from user code which is not local and not in a derived class (e.g. Autoload Singletons). + </constant> + <constant name="LOCATION_OTHER" value="1024" enum="CodeCompletionLocation"> + The option is from other engine code, not covered by the other enum constants - e.g. built-in classes. + </constant> <constant name="CODE_COMPLETION_KIND_CLASS" value="0" enum="CodeCompletionKind"> </constant> <constant name="CODE_COMPLETION_KIND_FUNCTION" value="1" enum="CodeCompletionKind"> |