initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=1 format=3 uid="uid://dl28pdkxcjvym"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_d1pub"]
|
||||
resource_name = "bounce"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gs7mj"]
|
||||
_data = {
|
||||
"bounce": SubResource("Animation_d1pub")
|
||||
}
|
||||
|
||||
[node name="GetNode" type="Node"]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_gs7mj")
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
[input]
|
||||
scene="res://completion/argument_options/argument_options.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "\"signal_a\""},
|
||||
{"display": "\"child_entered_tree\""},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
signal signal_a()
|
||||
|
||||
func _ready():
|
||||
connect(➡)
|
||||
pass
|
@@ -0,0 +1,6 @@
|
||||
[input]
|
||||
scene="res://completion/argument_options/argument_options.tscn"
|
||||
[output]
|
||||
include=[
|
||||
{"display": "\"bounce\""},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
@onready var anim := $AnimationPlayer
|
||||
|
||||
func test():
|
||||
anim.play(➡)
|
||||
pass
|
@@ -0,0 +1,6 @@
|
||||
[input]
|
||||
scene="res://completion/argument_options/argument_options.tscn"
|
||||
[output]
|
||||
include=[
|
||||
{"display": "\"bounce\""},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
@onready var anim: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func test():
|
||||
anim.play(➡)
|
||||
pass
|
@@ -0,0 +1,6 @@
|
||||
[input]
|
||||
scene="res://completion/argument_options/argument_options.tscn"
|
||||
[output]
|
||||
include=[
|
||||
{"display": "\"bounce\""},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
@onready var anim = $AnimationPlayer
|
||||
|
||||
func test():
|
||||
anim.play(➡)
|
||||
pass
|
@@ -0,0 +1,11 @@
|
||||
[input]
|
||||
add_node_path_literals=true
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "^\"property_of_a\""},
|
||||
{"insert_text": "^\"name\""},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "\"property_of_a\""},
|
||||
{"insert_text": "\"name\""},
|
||||
]
|
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A = preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func _ready() -> void:
|
||||
var a := A.new()
|
||||
var tween := get_tree().create_tween()
|
||||
tween.tween_property(a, ➡)
|
@@ -0,0 +1,11 @@
|
||||
[input]
|
||||
add_node_path_literals=true
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "\"property_of_a\""},
|
||||
{"insert_text": "\"name\""},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "^\"property_of_a\""},
|
||||
{"insert_text": "^\"name\""},
|
||||
]
|
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A = preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func _ready() -> void:
|
||||
var a := A.new()
|
||||
var tween := get_tree().create_tween()
|
||||
tween.tween_property(a, ^"➡")
|
@@ -0,0 +1,9 @@
|
||||
[input]
|
||||
add_string_name_literals=true
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "&\"test_input_action\""},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "\"test_input_action\""},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
func _input(event: InputEvent) -> void:
|
||||
event.is_action_pressed(➡)
|
||||
pass
|
@@ -0,0 +1,9 @@
|
||||
[input]
|
||||
add_string_name_literals=true
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "\"test_input_action\""},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "&\"test_input_action\""},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
func _input(event: InputEvent) -> void:
|
||||
event.is_action_pressed(&"➡")
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "\"property_of_a\""},
|
||||
{"insert_text": "\"name\""},
|
||||
]
|
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A = preload ("res://completion/class_a.notest.gd")
|
||||
|
||||
func _ready() -> void:
|
||||
var a := A.new()
|
||||
var tween := get_tree().create_tween()
|
||||
tween.tween_property(a, "➡")
|
@@ -0,0 +1,11 @@
|
||||
[input]
|
||||
add_node_path_literals=false
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "\"property_of_a\""},
|
||||
{"insert_text": "\"name\""},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "^\"property_of_a\""},
|
||||
{"insert_text": "^\"name\""},
|
||||
]
|
@@ -0,0 +1,8 @@
|
||||
extends Node
|
||||
|
||||
const A = preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func _ready() -> void:
|
||||
var a := A.new()
|
||||
var tween := get_tree().create_tween()
|
||||
tween.tween_property(a, ➡)
|
@@ -0,0 +1,9 @@
|
||||
[input]
|
||||
add_string_name_literals=false
|
||||
[output]
|
||||
include=[
|
||||
{"insert_text": "\"test_input_action\""},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "&\"test_input_action\""},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
func _input(event: InputEvent) -> void:
|
||||
event.is_action_pressed(➡)
|
||||
pass
|
@@ -0,0 +1,19 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "new(…)"},
|
||||
{"display": "SIZE_EXPAND"},
|
||||
{"display": "SIZE_EXPAND_FILL"},
|
||||
{"display": "SIZE_FILL"},
|
||||
{"display": "SIZE_SHRINK_BEGIN"},
|
||||
{"display": "SIZE_SHRINK_CENTER"},
|
||||
{"display": "SIZE_SHRINK_END"},
|
||||
]
|
||||
exclude=[
|
||||
{"display": "Control.SIZE_EXPAND"},
|
||||
{"display": "Control.SIZE_EXPAND_FILL"},
|
||||
{"display": "Control.SIZE_FILL"},
|
||||
{"display": "Control.SIZE_SHRINK_BEGIN"},
|
||||
{"display": "Control.SIZE_SHRINK_CENTER"},
|
||||
{"display": "Control.SIZE_SHRINK_END"},
|
||||
{"display": "contro_var"}
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Control
|
||||
|
||||
var contro_var
|
||||
|
||||
func _ready():
|
||||
size_flags_horizontal = Control.➡
|
||||
pass
|
@@ -0,0 +1,19 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "new(…)"},
|
||||
{"display": "SIZE_EXPAND"},
|
||||
{"display": "SIZE_EXPAND_FILL"},
|
||||
{"display": "SIZE_FILL"},
|
||||
{"display": "SIZE_SHRINK_BEGIN"},
|
||||
{"display": "SIZE_SHRINK_CENTER"},
|
||||
{"display": "SIZE_SHRINK_END"},
|
||||
]
|
||||
exclude=[
|
||||
{"display": "Control.SIZE_EXPAND"},
|
||||
{"display": "Control.SIZE_EXPAND_FILL"},
|
||||
{"display": "Control.SIZE_FILL"},
|
||||
{"display": "Control.SIZE_SHRINK_BEGIN"},
|
||||
{"display": "Control.SIZE_SHRINK_CENTER"},
|
||||
{"display": "Control.SIZE_SHRINK_END"},
|
||||
{"display": "contro_var"}
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Control
|
||||
|
||||
var contro_var
|
||||
|
||||
func _ready():
|
||||
size_flags_horizontal = Control.SIZE➡
|
||||
pass
|
@@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "Control.SIZE_EXPAND"},
|
||||
{"display": "Control.SIZE_EXPAND_FILL"},
|
||||
{"display": "Control.SIZE_FILL"},
|
||||
{"display": "Control.SIZE_SHRINK_BEGIN"},
|
||||
{"display": "Control.SIZE_SHRINK_CENTER"},
|
||||
{"display": "Control.SIZE_SHRINK_END"},
|
||||
]
|
||||
exclude=[
|
||||
{"display": "contro_var"}
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Control
|
||||
|
||||
var contro_var
|
||||
|
||||
func _ready():
|
||||
size_flags_horizontal = Con➡
|
||||
pass
|
@@ -0,0 +1,12 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "Control.SIZE_EXPAND"},
|
||||
{"display": "Control.SIZE_EXPAND_FILL"},
|
||||
{"display": "Control.SIZE_FILL"},
|
||||
{"display": "Control.SIZE_SHRINK_BEGIN"},
|
||||
{"display": "Control.SIZE_SHRINK_CENTER"},
|
||||
{"display": "Control.SIZE_SHRINK_END"},
|
||||
]
|
||||
exclude=[
|
||||
{"display": "contro_var"}
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Control
|
||||
|
||||
var contro_var
|
||||
|
||||
func _ready():
|
||||
size_flags_horizontal = ➡
|
||||
pass
|
@@ -0,0 +1,9 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "DrawMode",
|
||||
"location": 256},
|
||||
{"display": "Anchor",
|
||||
"location": 257},
|
||||
{"display": "TextureRepeat",
|
||||
"location": 258},
|
||||
]
|
@@ -0,0 +1,4 @@
|
||||
extends Control
|
||||
|
||||
func _ready():
|
||||
var t = BaseButton.➡
|
@@ -0,0 +1,9 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "DrawMode",
|
||||
"location": 256},
|
||||
{"display": "Anchor",
|
||||
"location": 257},
|
||||
{"display": "TextureRepeat",
|
||||
"location": 258},
|
||||
]
|
@@ -0,0 +1,4 @@
|
||||
extends Control
|
||||
|
||||
func _ready():
|
||||
var t: BaseButton.➡
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "HEURISTIC_MAX"},
|
||||
{"display": "HEURISTIC_OCTILE"},
|
||||
]
|
@@ -0,0 +1,4 @@
|
||||
extends Control
|
||||
|
||||
func _ready():
|
||||
AStarGrid2D.Heuristic.➡
|
45
modules/gdscript/tests/scripts/completion/class_a.notest.gd
Normal file
45
modules/gdscript/tests/scripts/completion/class_a.notest.gd
Normal file
@@ -0,0 +1,45 @@
|
||||
extends Node
|
||||
|
||||
class InnerA:
|
||||
class InnerInnerA:
|
||||
enum EnumOfInnerInnerA {
|
||||
ENUM_VALUE_1,
|
||||
ENUM_VALUE_2,
|
||||
}
|
||||
|
||||
enum EnumOfInnerA {
|
||||
ENUM_VALUE_1,
|
||||
ENUM_VALUE_2,
|
||||
}
|
||||
|
||||
signal signal_of_inner_a
|
||||
var property_of_inner_a
|
||||
func func_of_inner_a():
|
||||
pass
|
||||
|
||||
enum EnumOfA {
|
||||
ENUM_VALUE_1,
|
||||
ENUM_VALUE_2,
|
||||
}
|
||||
|
||||
signal signal_of_a
|
||||
|
||||
var property_of_a
|
||||
|
||||
func func_of_a():
|
||||
pass
|
||||
|
||||
|
||||
func _func_of_a_underscore():
|
||||
pass
|
||||
|
||||
|
||||
static func func_of_a_static():
|
||||
pass
|
||||
|
||||
func func_of_a_args(a: int):
|
||||
pass
|
||||
|
||||
func func_of_a_callable(call := func():
|
||||
var x_of_a = 10):
|
||||
pass
|
31
modules/gdscript/tests/scripts/completion/class_b.notest.gd
Normal file
31
modules/gdscript/tests/scripts/completion/class_b.notest.gd
Normal file
@@ -0,0 +1,31 @@
|
||||
extends Node
|
||||
class_name B
|
||||
|
||||
class InnerB:
|
||||
class InnerInnerB:
|
||||
enum EnumOfInnerInnerB {
|
||||
ENUM_VALUE_1,
|
||||
ENUM_VALUE_2,
|
||||
}
|
||||
|
||||
enum EnumOfInnerB {
|
||||
ENUM_VALUE_1,
|
||||
ENUM_VALUE_2,
|
||||
}
|
||||
|
||||
signal signal_of_inner_b
|
||||
var property_of_inner_b
|
||||
func func_of_inner_b():
|
||||
pass
|
||||
|
||||
enum EnumOfB {
|
||||
ENUM_VALUE_1,
|
||||
ENUM_VALUE_2,
|
||||
}
|
||||
|
||||
signal signal_of_b
|
||||
|
||||
var property_of_b
|
||||
|
||||
func func_of_b():
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; PackedScene
|
||||
{"display": "instantiate(…)"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
var list: Array
|
||||
|
||||
func spawn_npc() -> void:
|
||||
var scene: PackedScene = list.pick_random()
|
||||
scene.➡
|
@@ -0,0 +1,28 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: identifiers.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,18 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
print(t➡)
|
@@ -0,0 +1,28 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: identifiers.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,18 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
t➡
|
@@ -0,0 +1,28 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Utility Functions
|
||||
{"display": "print(…)", "insert_text": "print("},
|
||||
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: identifiers.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,22 @@
|
||||
# godotengine/godot#92226
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
print(t➡
|
||||
|
||||
if true:
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; String
|
||||
{"display": "begins_with(…)"},
|
||||
]
|
@@ -0,0 +1,9 @@
|
||||
class TestClass:
|
||||
func to_str(b: int):
|
||||
return str(b)
|
||||
|
||||
var a: TestClass
|
||||
|
||||
func _ready():
|
||||
a.to_str(10).➡
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a()"},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func test():
|
||||
super.➡
|
||||
|
||||
if true:
|
||||
pass
|
@@ -0,0 +1,5 @@
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a()"},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func test():
|
||||
super.f➡
|
||||
|
||||
if true:
|
||||
pass
|
@@ -0,0 +1,26 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
exclude=[
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
{"display": "add_child(…)"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: no_completion_in_string.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
{"display": "test_parameter_1"},
|
||||
{"display": "test_parameter_2"},
|
||||
{"display": "local_test_var_1"},
|
||||
{"display": "local_test_var_2"},
|
||||
]
|
@@ -0,0 +1,19 @@
|
||||
# godotengine/godot#62945
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init(test_parameter_1, test_parameter_2: String):
|
||||
var local_test_var_1
|
||||
var local_test_var_2: int
|
||||
var a = "➡"
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "test(x: int) -> void:", "insert_text": "test(x: int) -> void:"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
@abstract class A:
|
||||
@abstract func test(x: int) -> void
|
||||
|
||||
class B extends A:
|
||||
func ➡
|
@@ -0,0 +1,5 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
{"display": "_get(property: StringName) -> Variant:"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends Object
|
||||
|
||||
func _get➡
|
@@ -0,0 +1,13 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a():"},
|
||||
{"display": "func_of_a_args(a: int):"},
|
||||
{"display": "func_of_a_callable(call := func():
|
||||
var x_of_a = 10):"}
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_static_init() -> void:"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func ➡
|
@@ -0,0 +1,14 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_static_init() -> void:"},
|
||||
{"display": "func_of_a_static():"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "func_of_a():"},
|
||||
{"display": "func_of_a_args(a: int):"},
|
||||
{"display": "func_of_a_callable(call := func():
|
||||
var x_of_a = 10):"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
static func ➡
|
@@ -0,0 +1,10 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_func_of_a_underscore():"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "_static_init() -> void:"},
|
||||
]
|
@@ -0,0 +1,3 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
func _➡
|
21
modules/gdscript/tests/scripts/completion/common/self.cfg
Normal file
21
modules/gdscript/tests/scripts/completion/common/self.cfg
Normal file
@@ -0,0 +1,21 @@
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child(…)"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a()"},
|
||||
{"display": "signal_of_a"},
|
||||
|
||||
; GDScript: self.gd
|
||||
{"display": "test_signal_1"},
|
||||
{"display": "test_signal_2"},
|
||||
{"display": "test_var_1"},
|
||||
{"display": "test_var_2"},
|
||||
{"display": "test_func_1(…)"},
|
||||
{"display": "test_func_2(…)"},
|
||||
]
|
17
modules/gdscript/tests/scripts/completion/common/self.gd
Normal file
17
modules/gdscript/tests/scripts/completion/common/self.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends "res://completion/class_a.notest.gd"
|
||||
|
||||
signal test_signal_1(a)
|
||||
signal test_signal_2(a: int)
|
||||
|
||||
var test_var_1
|
||||
var test_var_2: int
|
||||
|
||||
func test_func_1(t):
|
||||
pass
|
||||
|
||||
func test_func_2(t: int) -> void:
|
||||
pass
|
||||
|
||||
func _init():
|
||||
self.➡
|
||||
pass
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
exclude=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
# Disabled due to GH-105421
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
t = 1,
|
||||
AutoTranslateMode.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
exclude=[
|
||||
{"display": "VALUE"},
|
||||
]
|
@@ -0,0 +1,10 @@
|
||||
extends Node
|
||||
|
||||
enum TestEnum {
|
||||
VALUE,
|
||||
}
|
||||
|
||||
var test = {
|
||||
t = 1,
|
||||
TestEnum.➡ = 1,
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
t = AutoTranslateMode.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "VALUE"},
|
||||
]
|
@@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
enum TestEnum {
|
||||
VALUE,
|
||||
}
|
||||
|
||||
var test = {
|
||||
= TestEnum.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,6 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
t = 1,
|
||||
e AutoTranslateMode.➡,
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "VALUE"},
|
||||
]
|
@@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
enum TestEnum {
|
||||
VALUE,
|
||||
}
|
||||
|
||||
var test = {
|
||||
1 = TestEnum.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,6 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
t = 1,
|
||||
1 AutoTranslateMode.➡,
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
AutoTranslateMode.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
AutoTranslateMode.➡:
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "VALUE"},
|
||||
]
|
@@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
enum TestEnum {
|
||||
VALUE,
|
||||
}
|
||||
|
||||
var test = {
|
||||
TestEnum.➡ "test"
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
AutoTranslateMode.➡: 1
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
1: AutoTranslateMode.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "VALUE"},
|
||||
]
|
@@ -0,0 +1,9 @@
|
||||
extends Node
|
||||
|
||||
enum TestEnum {
|
||||
VALUE,
|
||||
}
|
||||
|
||||
var test = {
|
||||
: TestEnum.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,5 @@
|
||||
extends Node
|
||||
|
||||
var test = {
|
||||
1 AutoTranslateMode.➡
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
|
||||
]
|
@@ -0,0 +1,7 @@
|
||||
extends Node
|
||||
|
||||
var t
|
||||
|
||||
func test():
|
||||
match t:
|
||||
AutoTranslateMode.➡
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "VALUE"},
|
||||
]
|
@@ -0,0 +1,11 @@
|
||||
extends Node
|
||||
|
||||
enum TestEnum {
|
||||
VALUE,
|
||||
}
|
||||
|
||||
var t
|
||||
|
||||
func test():
|
||||
match t:
|
||||
TestEnum.➡ where
|
@@ -0,0 +1,4 @@
|
||||
[output]
|
||||
include=[
|
||||
{"display": "VALUE"},
|
||||
]
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user