Index · Object → ScriptLanguage → ScriptLanguageExtension

ScriptLanguageExtension

Methods

func _add_global_constant(name: StringName, value: Variant) -> void
func _add_named_global_constant(name: StringName, value: Variant) -> void
func _auto_indent_code(code: String, from_line: int, to_line: int) -> String
func _can_inherit_from_file() -> bool
func _can_make_function() -> bool
func _complete_code(code: String, path: String, owner: Object) -> Dictionary
func _create_script() -> Object
func _debug_get_current_stack_info() -> Dictionary[]
func _debug_get_error() -> String
func _debug_get_globals(max_subitems: int, max_depth: int) -> Dictionary
func _debug_get_stack_level_count() -> int
func _debug_get_stack_level_function(level: int) -> String
func _debug_get_stack_level_instance(level: int) -> void*
func _debug_get_stack_level_line(level: int) -> int
func _debug_get_stack_level_locals(level: int, max_subitems: int, max_depth: int) -> Dictionary
func _debug_get_stack_level_members(level: int, max_subitems: int, max_depth: int) -> Dictionary
func _debug_get_stack_level_source(level: int) -> String

Returns the source associated with a given debug stack position.

func _debug_parse_stack_level_expression(level: int, expression: String, max_subitems: int, max_depth: int) -> String
func _find_function(function: String, code: String) -> int

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

func _finish() -> void
func _frame() -> void
func _get_built_in_templates(object: StringName) -> Dictionary[]
func _get_comment_delimiters() -> PackedStringArray
func _get_doc_comment_delimiters() -> PackedStringArray
func _get_extension() -> String
func _get_global_class_name(path: String) -> Dictionary
func _get_name() -> String
func _get_public_annotations() -> Dictionary[]
func _get_public_constants() -> Dictionary
func _get_public_functions() -> Dictionary[]
func _get_recognized_extensions() -> PackedStringArray
func _get_reserved_words() -> PackedStringArray
func _get_string_delimiters() -> PackedStringArray
func _get_type() -> String
func _handles_global_class_type(type: String) -> bool
func _has_named_classes() -> bool
func _init() -> void
func _is_control_flow_keyword(keyword: String) -> bool
func _is_using_templates() -> bool
func _lookup_code(code: String, symbol: String, path: String, owner: Object) -> Dictionary
func _make_function(class_name: String, function_name: String, function_args: PackedStringArray) -> String
func _make_template(template: String, class_name: String, base_class_name: String) -> Script
func _open_in_external_editor(script: Script, line: int, column: int) -> Error
func _overrides_external_editor() -> bool
func _preferred_file_name_casing() -> ScriptLanguage.ScriptNameCasing
func _profiling_get_accumulated_data(info_array: ScriptLanguageExtensionProfilingInfo*, info_max: int) -> int
func _profiling_get_frame_data(info_array: ScriptLanguageExtensionProfilingInfo*, info_max: int) -> int
func _profiling_set_save_native_calls(enable: bool) -> void
func _profiling_start() -> void
func _profiling_stop() -> void
func _reload_all_scripts() -> void
func _reload_scripts(scripts: Array, soft_reload: bool) -> void

Reloads all scripts from disk and the specifics of how that happens is ScriptLanguageExtension specific.

func _reload_tool_script(script: Script, soft_reload: bool) -> void

Reloads the given script from disk and the specifics of how that happens is ScriptLanguageExtension specific.

func _remove_named_global_constant(name: StringName) -> void
func _supports_builtin_mode() -> bool
func _supports_documentation() -> bool
func _thread_enter() -> void
func _thread_exit() -> void
func _validate(script: String, path: String, validate_functions: bool, validate_errors: bool, validate_warnings: bool, validate_safe_lines: bool) -> Dictionary
func _validate_path(path: String) -> String
Inherited from Object (62)
func _get(property: StringName) -> Variant
func _get_property_list() -> Dictionary[]
func _init() -> void
func _iter_get(iter: Variant) -> Variant
func _iter_init(iter: Array) -> bool
func _iter_next(iter: Array) -> bool
func _notification(what: int) -> void
func _set(property: StringName, value: Variant) -> bool
func _to_string() -> String
func _validate_property(property: Dictionary) -> void
func add_user_signal(signal: String, arguments: Array = []) -> void
func call(method: StringName) -> Variant
func callv(method: StringName, arg_array: Array) -> Variant
func cancel_free() -> void
func connect(signal: StringName, callable: Callable, flags: int = 0) -> Error
func disconnect(signal: StringName, callable: Callable) -> void
func emit_signal(signal: StringName) -> Error
func free() -> void
func get(property: StringName) -> Variant
func get_class() -> String
func get_incoming_connections() -> Dictionary[]
func get_indexed(property_path: NodePath) -> Variant
func get_meta(name: StringName, default: Variant = null) -> Variant
func get_meta_list() -> StringName[]
func get_method_list() -> Dictionary[]
func get_property_list() -> Dictionary[]
func get_signal_connection_list(signal: StringName) -> Dictionary[]
func get_signal_list() -> Dictionary[]
func has_meta(name: StringName) -> bool
func has_method(method: StringName) -> bool
func has_signal(signal: StringName) -> bool
func is_class(class: StringName) -> bool
func is_connected(signal: StringName, callable: Callable) -> bool
func notification(what: int, reversed: bool = false) -> void
func remove_meta(name: StringName) -> void
func remove_user_signal(signal: StringName) -> void
func set(property: StringName, value: Variant) -> void
func set_block_signals(enable: bool) -> void
func set_deferred(property: StringName, value: Variant) -> void
func set_indexed(property_path: NodePath, value: Variant) -> void
func set_message_translation(enable: bool) -> void
func set_meta(name: StringName, value: Variant) -> void
func set_script(script: Variant) -> void
func set_translation_domain(domain: StringName) -> void
func to_string() -> String
func tr(message: StringName, context: StringName = &"") -> String
func tr_n(message: StringName, plural_message: StringName, n: int, context: StringName = &"") -> String

Signals

Inherited from Object (2)

Enums & Constants

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
enum CodeCompletionLocation
LOCATION_LOCAL = 0

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).

LOCATION_PARENT_MASK = 256

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.

LOCATION_OTHER_USER_CODE = 512

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

LOCATION_OTHER = 1024

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

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_KEYWORD = 10
CODE_COMPLETION_KIND_MAX = 11