1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #67132 from KoBeWi/This_commit_message_is_auto-generated._Do_not_modify_it-

Add UID support to GDScript files
This commit is contained in:
Rémi Verschelde
2024-01-18 16:33:14 +01:00
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