1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add UID support to GDScript files

This commit is contained in:
kobewi
2022-10-09 15:12:52 +02:00
parent 107f2961cc
commit c7f68a27ec
15 changed files with 307 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
@uid("uid://c4ckv3ryprcn4")
@uid("uid://c4ckv3ryprcn4")
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
"@uid" annotation can only be used once.

View File

@@ -0,0 +1,4 @@
@uid("not a valid uid")
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
The annotated UID is invalid.

View File

@@ -0,0 +1,5 @@
extends Object
@uid("uid://c4ckv3ryprcn4")
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Annotation "@uid" must be at the top of the script, before "extends" and "class_name".

View File

@@ -0,0 +1,5 @@
@uid("uid://c4ckv3ryprcn4")
extends Object
func test():
pass

View File

@@ -0,0 +1 @@
GDTEST_OK