Skip to content

Commit 6637eb8

Browse files
committed
[JavaScript] add more symbol tests
1 parent 20707dd commit 6637eb8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

JavaScript/tests/syntax_test_typescript_declarations.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// ^^ storage.modifier
77
// ^^^^^^^^^ keyword.declaration
88
// ^ entity.name.namespace
9+
// @ definition
910
// ^ punctuation.terminator.statement - punctuation.terminator.statement.empty
1011

1112
export const x: any;
@@ -41,6 +42,7 @@
4142
// ^^^^^^^^^^^^^^^^^^^^^^^ meta.function
4243
// ^^^^^^^^ keyword.declaration.function
4344
// ^ entity.name.function
45+
// @ definition
4446
// ^^^^^^^^ meta.function.parameters
4547
// ^ punctuation.section.group.begin
4648
// ^ meta.binding.name variable.parameter.function
@@ -57,8 +59,9 @@
5759
// ^^^^^^^^^ meta.class
5860
// ^^^^^ keyword.declaration.class
5961
// ^ entity.name.class
62+
// @ definition
6063
// ^ meta.block punctuation.section.block.begin
61-
64+
6265
x: any;
6366
// ^ variable.other.readwrite
6467
// ^ punctuation.separator.type
@@ -69,6 +72,7 @@
6972
f(x: any): any;
7073
// ^^^^^^^^^^^^^^ meta.function
7174
// ^ entity.name.function
75+
// @ definition
7276
// ^^^^^^^^ meta.function.parameters
7377
// ^ punctuation.section.group.begin
7478
// ^ meta.binding.name
@@ -90,6 +94,7 @@
9094
// ^^^^^^^^^^^^^^ meta.interface
9195
// ^^^^^^^^^ keyword.declaration
9296
// ^ entity.name.interface
97+
// @ definition
9398
// ^^ meta.block
9499
// ^ punctuation.section.block.begin
95100
// ^ punctuation.section.block.end
@@ -101,6 +106,7 @@
101106
// ^^^^^^^^^^^^^ meta.namespace
102107
// ^^^^^^^^^ keyword.declaration
103108
// ^ entity.name.namespace
109+
// @ definition
104110
// ^ meta.block punctuation.section.block.begin
105111

106112
const x: any;
@@ -147,6 +153,7 @@
147153
// ^^^^^^^^^^^^^^^^^^^^^^^ meta.function
148154
// ^^^^^^^^ keyword.declaration.function
149155
// ^ entity.name.function
156+
// @ definition
150157
// ^^^^^^^^ meta.function.parameters
151158
// ^ punctuation.section.group.begin
152159
// ^ meta.binding.name variable.parameter.function
@@ -164,6 +171,7 @@
164171
// ^^^^^^^^^^ meta.class
165172
// ^^^^^ keyword.declaration.class
166173
// ^ entity.name.class
174+
// @ definition
167175
// ^^ meta.block
168176
// ^ punctuation.section.block.begin
169177
// ^ punctuation.section.block.end
@@ -173,6 +181,7 @@
173181
// ^^^^^^^^^^^^^^ meta.namespace
174182
// ^^^^^^^^^ keyword.declaration
175183
// ^ entity.name.namespace
184+
// @ definition
176185
// ^^ meta.block
177186
// ^ punctuation.section.block.begin
178187
// ^ punctuation.section.block.end
@@ -182,13 +191,15 @@
182191
// ^^^^^^^^^^^^^^^^ meta.module
183192
// ^^^^^^ keyword.declaration.module
184193
// ^^^^^^ entity.name.module.js
194+
// @@@@@@ definition
185195
// ^^ meta.block
186196

187197
declare module 'module' {}
188198
// ^^^^^^^ storage.modifier
189199
// ^^^^^^^^^^^^^^^^^^ meta.module
190200
// ^^^^^^ keyword.declaration.module
191201
// ^^^^^^^^ entity.name.module.js
202+
// @@@@@@@@ definition "module"
192203
// ^ punctuation.definition.quoted.begin.js
193204
// ^ punctuation.definition.quoted.end.js
194205
// ^^ meta.block
@@ -198,6 +209,7 @@
198209
// ^^^^^^^^^^^^^^^^^^ meta.module
199210
// ^^^^^^ keyword.declaration.module
200211
// ^^^^^^^^ entity.name.module.js
212+
// @@@@@@@@ definition "module"
201213
// ^ punctuation.definition.quoted.begin.js
202214
// ^ punctuation.definition.quoted.end.js
203215
// ^^ meta.block

0 commit comments

Comments
 (0)