summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd
diff options
context:
space:
mode:
authorHolonProduction <holonproduction@gmail.com>2023-11-21 16:06:43 +0100
committerHolonProduction <holonproduction@gmail.com>2024-01-05 17:49:51 +0100
commitaf4cbaf75125cdb1f37ece93802e75b03af9d96f (patch)
treee85868e882ddfd6154d4f04251d441239d3afa2a /modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd
parentd822fd53221f68c562deda6a8c35a524e7fdf146 (diff)
downloadredot-engine-af4cbaf75125cdb1f37ece93802e75b03af9d96f.tar.gz
Add unit test runner for autocompletion
Diffstat (limited to 'modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd')
-rw-r--r--modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd56
1 files changed, 0 insertions, 56 deletions
diff --git a/modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd b/modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd
deleted file mode 100644
index 338000fa0e..0000000000
--- a/modules/gdscript/tests/scripts/lsp/shadowing_initializer.notest.gd
+++ /dev/null
@@ -1,56 +0,0 @@
-extends Node
-
-var value := 42
-# ^^^^^ member:value -> member:value
-
-func variable():
- var value = value + 42
- #! | | ^^^^^ -> member:value
- # ^^^^^ variable:value -> variable:value
- print(value)
- # ^^^^^ -> variable:value
-
-func array():
- var value = [1,value,3,value+4]
- #! | | | | ^^^^^ -> member:value
- #! | | ^^^^^ -> member:value
- # ^^^^^ array:value -> array:value
- print(value)
- # ^^^^^ -> array:value
-
-func dictionary():
- var value = {
- # ^^^^^ dictionary:value -> dictionary:value
- "key1": value,
- #! ^^^^^ -> member:value
- "key2": 1 + value + 3,
- #! ^^^^^ -> member:value
- }
- print(value)
- # ^^^^^ -> dictionary:value
-
-func for_loop():
- for value in value:
- # | | ^^^^^ -> member:value
- # ^^^^^ for:value -> for:value
- print(value)
- # ^^^^^ -> for:value
-
-func for_range():
- for value in range(5, value):
- # | | ^^^^^ -> member:value
- # ^^^^^ for:range:value -> for:range:value
- print(value)
- # ^^^^^ -> for:range:value
-
-func matching():
- match value:
- # ^^^^^ -> member:value
- 42: print(value)
- # ^^^^^ -> member:value
- [var value, ..]: print(value)
- # | | ^^^^^ -> match:array:value
- # ^^^^^ match:array:value -> match:array:value
- var value: print(value)
- # | | ^^^^^ -> match:var:value
- # ^^^^^ match:var:value -> match:var:value