summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/annotations.gd
blob: 7a7d6d953e924769538753621feece650f144a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
extends Node

const Utils = preload("../../utils.notest.gd")

@export_enum("A", "B", "C") var test_1
@export_enum("A", "B", "C",) var test_2

@export_enum(
	"A",
	"B",
	"C"
) var test_3

@export_enum(
	"A",
	"B",
	"C",
) var test_4

@export
var test_5: int

@export()
var test_6: int

@export() var test_7: int = 42
@warning_ignore("onready_with_export") @onready @export var test_8: int = 42
@warning_ignore("onready_with_export") @onready() @export() var test_9: int = 42

@warning_ignore("onready_with_export")
@onready
@export
var test_10: int = 42

@warning_ignore("onready_with_export")
@onready()
@export()
var test_11: int = 42

@warning_ignore("onready_with_export")
@onready()
@export()

var test_12: int = 42

func test():
	for property in get_property_list():
		if str(property.name).begins_with("test_"):
			Utils.print_property_extended_info(property, self)