Merge pull request #105413 from HolonProduction/gdscript-recover-match

GDScript: Do phrase level recovery for match
This commit is contained in:
Thaddeus Crews
2025-05-23 09:46:10 -05:00
16 changed files with 100 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
]

View File

@@ -0,0 +1,7 @@
extends Node
var t
func test():
match t:
AutoTranslateMode.

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "VALUE"},
]

View File

@@ -0,0 +1,11 @@
extends Node
enum TestEnum {
VALUE,
}
var t
func test():
match t:
TestEnum. where

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "VALUE"},
]

View File

@@ -0,0 +1,11 @@
extends Node
enum TestEnum {
VALUE,
}
var t
func test():
match t:
TestEnum.:

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
]

View File

@@ -0,0 +1,4 @@
extends Node
func test():
match AutoTranslateMode.

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "VALUE"},
]

View File

@@ -0,0 +1,8 @@
extends Node
enum TestEnum {
VALUE,
}
func test():
match TestEnum.:

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "AUTO_TRANSLATE_MODE_INHERIT"},
]

View File

@@ -0,0 +1,5 @@
extends Node
func test():
match AutoTranslateMode.:
pass

View File

@@ -0,0 +1,4 @@
[output]
include=[
{"display": "VALUE"},
]

View File

@@ -0,0 +1,9 @@
extends Node
enum TestEnum {
VALUE,
}
func test():
match TestEnum.:
TestEnum