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
commit d3003c48b3
No known key found for this signature in database
GPG key ID: C3336907360768E1
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