feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -1,3 +1,5 @@
|
|||
extends Node
|
||||
|
||||
@onready var anim := $AnimationPlayer
|
||||
|
||||
func test():
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
extends Node
|
||||
|
||||
@onready var anim: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func test():
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
extends Node
|
||||
|
||||
@onready var anim = $AnimationPlayer
|
||||
|
||||
func test():
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
%AnimationPlayer.➡
|
||||
$UniqueAnimationPlayer.➡
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
$UniqueAnimationPlayer.➡
|
||||
%AnimationPlayer.➡
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test := $A
|
||||
@onready var test := $A
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test := $AnimationPlayer
|
||||
@onready var test := $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test = $A
|
||||
@onready var test = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test = $AnimationPlayer
|
||||
@onready var test = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: AnimationPlayer = $AnimationPlayer
|
||||
@onready var test: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Node = $A
|
||||
@onready var test: Node = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Node = $AnimationPlayer
|
||||
@onready var test: Node = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Area2D = $A
|
||||
@onready var test: Area2D = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Area2D = $AnimationPlayer
|
||||
@onready var test: Area2D = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "hello_world", "insert_text": "hello_world"},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "hello_world()"},
|
||||
{"insert_text": "hello_world("},
|
||||
]
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
signal test
|
||||
|
||||
func _init() -> void:
|
||||
test.connect(h➡)
|
||||
pass
|
||||
|
||||
func hello_world():
|
||||
pass
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "hello_world", "insert_text": "hello_world"},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "hello_world()"},
|
||||
{"insert_text": "hello_world("},
|
||||
]
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
var arr: Array
|
||||
|
||||
func _init() -> void:
|
||||
arr.sort_custom(h➡
|
||||
pass
|
||||
|
||||
func hello_world():
|
||||
pass
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "hello_world", "insert_text": "hello_world"},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "hello_world()"},
|
||||
{"insert_text": "hello_world("},
|
||||
]
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
func test(a: Callable, b):
|
||||
pass
|
||||
|
||||
func _init() -> void:
|
||||
test(h➡)
|
||||
pass
|
||||
|
||||
func hello_world():
|
||||
pass
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "hello_world", "insert_text": "hello_world"},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "hello_world()"},
|
||||
{"insert_text": "hello_world("},
|
||||
]
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
func test(a, b: Callable):
|
||||
pass
|
||||
|
||||
func _init() -> void:
|
||||
test(hello_world(), h➡)
|
||||
pass
|
||||
|
||||
func hello_world():
|
||||
pass
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "hello_world()", "insert_text": "hello_world()"},
|
||||
]
|
||||
exclude=[
|
||||
{"insert_text": "hello_world"},
|
||||
{"insert_text": "hello_world("},
|
||||
]
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
func test(a, b: Callable):
|
||||
pass
|
||||
|
||||
func _init() -> void:
|
||||
test(h➡)
|
||||
pass
|
||||
|
||||
func hello_world():
|
||||
pass
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "hello_world", "insert_text": "hello_world"},
|
||||
]
|
||||
exclude=[
|
||||
{"display": "hello_world", "insert_text": "hello_world()"},
|
||||
{"display": "hello_world", "insert_text": "hello_world("},
|
||||
]
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
func _init() -> void:
|
||||
create_tween().tween_callback(h➡)
|
||||
pass
|
||||
|
||||
func hello_world():
|
||||
pass
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class_name Test
|
||||
extends Node
|
||||
|
||||
func _init():
|
||||
pass
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# TODO: This test is currently disabled since it triggers some complex memory leaks. Try enabling it again once GH-101830 is fixed.
|
||||
|
||||
signal finished
|
||||
|
||||
const scr: GDScript = preload("reload_suspended_function_helper.notest.gd")
|
||||
|
||||
func test():
|
||||
@warning_ignore("UNSAFE_METHOD_ACCESS")
|
||||
scr.test(self)
|
||||
@warning_ignore("RETURN_VALUE_DISCARDED")
|
||||
scr.reload(true)
|
||||
finished.emit()
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_RUNTIME_ERROR
|
||||
>> WARNING: Canceling suspended execution of "test" due to a script reload.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
static func test(a):
|
||||
await a.finished
|
||||
pass
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
var array_var: Array = ["one", "two", "three", "four"]
|
||||
const array_const: Array = ["one", "two", "three", "four"]
|
||||
|
||||
var array_nested_var: Array = [["one"], ["two"], ["three"], ["four"]]
|
||||
const array_nested_const: Array = [["one"], ["two"], ["three"], ["four"]]
|
||||
|
||||
|
||||
func test():
|
||||
Utils.check(array_const.is_read_only() == true)
|
||||
Utils.check(array_nested_const.is_read_only() == true)
|
||||
|
||||
print("TEST Callable::callv")
|
||||
print_four_variants.callv(array_var)
|
||||
print_four_variants.callv(array_const)
|
||||
print_four_variants.callv(array_nested_var)
|
||||
print_four_variants.callv(array_nested_const)
|
||||
|
||||
print("TEST Object::callv")
|
||||
self.callv("print_four_variants", array_var)
|
||||
self.callv("print_four_variants", array_const)
|
||||
self.callv("print_four_variants", array_nested_var)
|
||||
self.callv("print_four_variants", array_nested_const)
|
||||
|
||||
|
||||
func print_four_variants(v1, v2, v3, v4):
|
||||
print("%s %s %s %s" % [v1, v2, v3, v4])
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
GDTEST_OK
|
||||
TEST Callable::callv
|
||||
one two three four
|
||||
one two three four
|
||||
["one"] ["two"] ["three"] ["four"]
|
||||
["one"] ["two"] ["three"] ["four"]
|
||||
TEST Object::callv
|
||||
one two three four
|
||||
one two three four
|
||||
["one"] ["two"] ["three"] ["four"]
|
||||
["one"] ["two"] ["three"] ["four"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue