Add more autocompletion tests

This commit is contained in:
HolonProduction 2024-06-02 15:52:21 +02:00
parent 705b7a0b0b
commit 48e297c144
28 changed files with 301 additions and 0 deletions

View 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"},
]

View File

@ -0,0 +1,16 @@
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():
t

View 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"},
]

View File

@ -0,0 +1,16 @@
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.

View File

@ -0,0 +1,6 @@
[output]
exclude=[
{"display": "Test Category"},
{"display": "Test Group"},
{"display": "Test Subgroup"},
]

View File

@ -0,0 +1,8 @@
extends CPUParticles2D
@export_category("Test Category")
@export_group("Test Group")
@export_subgroup("Test Subgroup")
func _init():

View File

@ -0,0 +1,4 @@
[output]
exclude=[
{"display": "messages"},
]

View File

@ -0,0 +1,3 @@
func test():
var trans = Translation.new()
trans.

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,8 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
func a():
var test := A.new()
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,8 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
func a():
var test = A.new()
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,8 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
func a():
var test: A
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,8 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
func a():
var test: Node = A.new()
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,8 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
func a():
var test: A = Node.new()
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,9 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
var test := A.new()
func a():
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,9 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
var test = A.new()
func a():
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,9 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
var test: A
func a():
test.
pass

View File

@ -0,0 +1,13 @@
[output]
include=[
; Node
{"display": "add_child"},
{"display": "owner"},
{"display": "child_entered_tree"},
]
exclude=[
; GDScript: class_a.notest.gd
{"display": "property_of_a"},
{"display": "func_of_a"},
{"display": "signal_of_a"},
]

View File

@ -0,0 +1,9 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
var test: Node = A.new()
func a():
test.
pass

View File

@ -0,0 +1,12 @@
[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"},
]

View File

@ -0,0 +1,9 @@
extends Node
const A := preload("res://completion/class_a.notest.gd")
var test: A = Node.new()
func a():
test.
pass