Inheritance #

Table of contents

ScriptLanguageExtension #

is_instantiable, core, not_builtin_classes

Members #

Methods #

virtual func _add_global_constant(value: Variant) -> void#

virtual func _add_named_global_constant(value: Variant) -> void#

virtual const func _auto_indent_code(to_line: int) -> String#

virtual const func _can_inherit_from_file() -> bool#

virtual const func _can_make_function() -> bool#

virtual const func _complete_code(owner: Object) -> Dictionary#

virtual const func _create_script() -> Object#

virtual func _debug_get_current_stack_info() -> Dictionary[]#

virtual const func _debug_get_error() -> String#

virtual func _debug_get_globals(max_depth: int) -> Dictionary#

virtual const func _debug_get_stack_level_count() -> int#

virtual const func _debug_get_stack_level_function(level: int) -> String#

virtual func _debug_get_stack_level_instance(level: int) -> void*#

virtual const func _debug_get_stack_level_line(level: int) -> int#

virtual func _debug_get_stack_level_locals(max_depth: int) -> Dictionary#

virtual func _debug_get_stack_level_members(max_depth: int) -> Dictionary#

virtual const func _debug_get_stack_level_source(level: int) -> String#

Returns the source associated with a given debug stack position.

virtual func _debug_parse_stack_level_expression(max_depth: int) -> String#

virtual const func _find_function(code: String) -> int#

Returns the line where the function is defined in the code, or -1 if the function is not present.

virtual func _finish() -> void#

virtual func _frame() -> void#

virtual const func _get_built_in_templates(object: StringName) -> Dictionary[]#

virtual const func _get_comment_delimiters() -> PackedStringArray#

virtual const func _get_doc_comment_delimiters() -> PackedStringArray#

virtual const func _get_extension() -> String#

virtual const func _get_global_class_name(path: String) -> Dictionary#

virtual const func _get_name() -> String#

virtual const func _get_public_annotations() -> Dictionary[]#

virtual const func _get_public_constants() -> Dictionary#

virtual const func _get_public_functions() -> Dictionary[]#

virtual const func _get_recognized_extensions() -> PackedStringArray#

virtual const func _get_reserved_words() -> PackedStringArray#

virtual const func _get_string_delimiters() -> PackedStringArray#

virtual const func _get_type() -> String#

virtual const func _handles_global_class_type(type: String) -> bool#

virtual const func _has_named_classes() -> bool#

virtual func _init() -> void#

virtual const func _is_control_flow_keyword(keyword: String) -> bool#

virtual func _is_using_templates() -> bool#

virtual const func _lookup_code(owner: Object) -> Dictionary#

virtual const func _make_function(function_args: PackedStringArray) -> String#

virtual const func _make_template(base_class_name: String) -> Script#

virtual func _open_in_external_editor(column: int) -> intError#

virtual func _overrides_external_editor() -> bool#

virtual const func _preferred_file_name_casing() -> intScriptLanguage.ScriptNameCasing#

virtual func _profiling_get_accumulated_data(info_max: int) -> int#

virtual func _profiling_get_frame_data(info_max: int) -> int#

virtual func _profiling_set_save_native_calls(enable: bool) -> void#

virtual func _profiling_start() -> void#

virtual func _profiling_stop() -> void#

virtual func _reload_all_scripts() -> void#

virtual func _reload_scripts(soft_reload: bool) -> void#

virtual func _reload_tool_script(soft_reload: bool) -> void#

virtual func _remove_named_global_constant(name: StringName) -> void#

virtual const func _supports_builtin_mode() -> bool#

virtual const func _supports_documentation() -> bool#

virtual func _thread_enter() -> void#

virtual func _thread_exit() -> void#

virtual const func _validate(validate_safe_lines: bool) -> Dictionary#

virtual const func _validate_path(path: String) -> String#

Annotations #

Constants #

const LOOKUP_RESULT_SCRIPT_LOCATION = 0 enum LookupResultType#

const LOOKUP_RESULT_CLASS = 1 enum LookupResultType#

const LOOKUP_RESULT_CLASS_CONSTANT = 2 enum LookupResultType#

const LOOKUP_RESULT_CLASS_PROPERTY = 3 enum LookupResultType#

const LOOKUP_RESULT_CLASS_METHOD = 4 enum LookupResultType#

const LOOKUP_RESULT_CLASS_SIGNAL = 5 enum LookupResultType#

const LOOKUP_RESULT_CLASS_ENUM = 6 enum LookupResultType#

const LOOKUP_RESULT_CLASS_TBD_GLOBALSCOPE = 7 enum LookupResultType#

const LOOKUP_RESULT_CLASS_ANNOTATION = 8 enum LookupResultType#

const LOOKUP_RESULT_LOCAL_CONSTANT = 9 enum LookupResultType#

const LOOKUP_RESULT_LOCAL_VARIABLE = 10 enum LookupResultType#

const LOOKUP_RESULT_MAX = 11 enum LookupResultType#

const LOCATION_LOCAL = 0 enum CodeCompletionLocation#

The option is local to the location of the code completion query - e.g. a local variable. Subsequent value of location represent options from the outer class, the exact value represent how far they are (in terms of inner classes).

const LOCATION_PARENT_MASK = 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 the class or a parent class.

const LOCATION_OTHER_USER_CODE = 512 enum CodeCompletionLocation#

The option is from user code which is not local and not in a derived class (e.g. Autoload Singletons).

const LOCATION_OTHER = 1024 enum CodeCompletionLocation#

The option is from other engine code, not covered by the other enum constants - e.g. built-in classes.

const CODE_COMPLETION_KIND_CLASS = 0 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_FUNCTION = 1 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_SIGNAL = 2 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_VARIABLE = 3 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_MEMBER = 4 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_ENUM = 5 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_CONSTANT = 6 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_NODE_PATH = 7 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_FILE_PATH = 8 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_PLAIN_TEXT = 9 enum CodeCompletionKind#

const CODE_COMPLETION_KIND_MAX = 10 enum CodeCompletionKind#

Constructors #

Enums #

LookupResultType#

enum LookupResultType { LOOKUP_RESULT_SCRIPT_LOCATION = 0, LOOKUP_RESULT_CLASS = 1, LOOKUP_RESULT_CLASS_CONSTANT = 2, LOOKUP_RESULT_CLASS_PROPERTY = 3, LOOKUP_RESULT_CLASS_METHOD = 4, LOOKUP_RESULT_CLASS_SIGNAL = 5, LOOKUP_RESULT_CLASS_ENUM = 6, LOOKUP_RESULT_CLASS_TBD_GLOBALSCOPE = 7, LOOKUP_RESULT_CLASS_ANNOTATION = 8, LOOKUP_RESULT_LOCAL_CONSTANT = 9, LOOKUP_RESULT_LOCAL_VARIABLE = 10, LOOKUP_RESULT_MAX = 11, }

CodeCompletionLocation#

enum CodeCompletionLocation { LOCATION_LOCAL = 0, LOCATION_PARENT_MASK = 256, LOCATION_OTHER_USER_CODE = 512, LOCATION_OTHER = 1024, }

CodeCompletionKind#

enum CodeCompletionKind { CODE_COMPLETION_KIND_CLASS = 0, CODE_COMPLETION_KIND_FUNCTION = 1, CODE_COMPLETION_KIND_SIGNAL = 2, CODE_COMPLETION_KIND_VARIABLE = 3, CODE_COMPLETION_KIND_MEMBER = 4, CODE_COMPLETION_KIND_ENUM = 5, CODE_COMPLETION_KIND_CONSTANT = 6, CODE_COMPLETION_KIND_NODE_PATH = 7, CODE_COMPLETION_KIND_FILE_PATH = 8, CODE_COMPLETION_KIND_PLAIN_TEXT = 9, CODE_COMPLETION_KIND_MAX = 10, }

Operators #

Signals #

Theme Items #

Tutorials #