forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd27e88
commit c3d3e48
Showing
28 changed files
with
301 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
modules/gdscript/tests/scripts/completion/common/identifiers.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
16 changes: 16 additions & 0 deletions
16
modules/gdscript/tests/scripts/completion/common/identifiers.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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➡ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.➡ |
6 changes: 6 additions & 0 deletions
6
modules/gdscript/tests/scripts/completion/filter/organized_export.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[output] | ||
exclude=[ | ||
{"display": "Test Category"}, | ||
{"display": "Test Group"}, | ||
{"display": "Test Subgroup"}, | ||
] |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/completion/filter/organized_export.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends CPUParticles2D | ||
|
||
@export_category("Test Category") | ||
@export_group("Test Group") | ||
@export_subgroup("Test Subgroup") | ||
|
||
func _init(): | ||
➡ |
4 changes: 4 additions & 0 deletions
4
modules/gdscript/tests/scripts/completion/filter/usage_internal.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[output] | ||
exclude=[ | ||
{"display": "messages"}, | ||
] |
3 changes: 3 additions & 0 deletions
3
modules/gdscript/tests/scripts/completion/filter/usage_internal.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
func test(): | ||
var trans = Translation.new() | ||
trans.➡ |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/local/interfered.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/completion/types/local/interfered.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
func a(): | ||
var test := A.new() | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/local/no_type.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/completion/types/local/no_type.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
func a(): | ||
var test = A.new() | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/local/typehint.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/completion/types/local/typehint.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
func a(): | ||
var test: A | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/local/typehint_broad.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/completion/types/local/typehint_broad.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
func a(): | ||
var test: Node = A.new() | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/local/typehint_incompatible.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
8 changes: 8 additions & 0 deletions
8
modules/gdscript/tests/scripts/completion/types/local/typehint_incompatible.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
func a(): | ||
var test: A = Node.new() | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/member/interfered.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
9 changes: 9 additions & 0 deletions
9
modules/gdscript/tests/scripts/completion/types/member/interfered.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
var test := A.new() | ||
|
||
func a(): | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/member/no_type.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
9 changes: 9 additions & 0 deletions
9
modules/gdscript/tests/scripts/completion/types/member/no_type.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
var test = A.new() | ||
|
||
func a(): | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/member/typehint.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
9 changes: 9 additions & 0 deletions
9
modules/gdscript/tests/scripts/completion/types/member/typehint.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
var test: A | ||
|
||
func a(): | ||
test.➡ | ||
pass |
13 changes: 13 additions & 0 deletions
13
modules/gdscript/tests/scripts/completion/types/member/typehint_broad.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
9 changes: 9 additions & 0 deletions
9
modules/gdscript/tests/scripts/completion/types/member/typehint_broad.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
var test: Node = A.new() | ||
|
||
func a(): | ||
test.➡ | ||
pass |
12 changes: 12 additions & 0 deletions
12
modules/gdscript/tests/scripts/completion/types/member/typehint_incompatible.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}, | ||
] |
9 changes: 9 additions & 0 deletions
9
modules/gdscript/tests/scripts/completion/types/member/typehint_incompatible.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
extends Node | ||
|
||
const A := preload("res://completion/class_a.notest.gd") | ||
|
||
var test: A = Node.new() | ||
|
||
func a(): | ||
test.➡ | ||
pass |