File tree Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Expand file tree Collapse file tree 3 files changed +63
-2
lines changed Original file line number Diff line number Diff line change @@ -7588,7 +7588,7 @@ namespace ts {
7588
7588
return lookAhead ( ( ) => {
7589
7589
parseOptional ( SyntaxKind . OpenBraceToken ) ;
7590
7590
return isIdentifier ( ) ;
7591
- } )
7591
+ } ) ;
7592
7592
}
7593
7593
7594
7594
function parseBracketNameInPropertyAndParamTag ( ) : { name : EntityName , isBracketed : boolean } {
Original file line number Diff line number Diff line change 5
5
//// }
6
6
7
7
//// namespace NS {
8
- //// export interface [| /*def2*/Bar|] {
8
+ //// export interface [|/*def2*/Bar|] {
9
9
//// baz: Foo
10
10
//// }
11
11
//// }
16
16
//// /** @see {NS./*use2*/[|Bar|]} ns.bar*/
17
17
//// const b = ""
18
18
19
+ //// /** @see /*use3*/[|Foo|] f1*/
20
+ //// const c = ""
21
+
22
+ //// /** @see NS./*use4*/[|Bar|] ns.bar*/
23
+ //// const [|/*def3*/d|] = ""
24
+
25
+ //// /** @see /*use5*/[|d|] dd*/
26
+ //// const e = ""
27
+
19
28
goTo . marker ( "use1" ) ;
20
29
verify . goToDefinitionIs ( "def1" ) ;
21
30
22
31
goTo . marker ( "use2" ) ;
23
32
verify . goToDefinitionIs ( "def2" ) ;
33
+
34
+ goTo . marker ( "use3" ) ;
35
+ verify . goToDefinitionIs ( "def1" ) ;
36
+
37
+ goTo . marker ( "use4" ) ;
38
+ verify . goToDefinitionIs ( "def2" ) ;
39
+
40
+ goTo . marker ( "use5" ) ;
41
+ verify . goToDefinitionIs ( "def3" ) ;
Original file line number Diff line number Diff line change
1
+ ///<reference path="fourslash.ts" />
2
+
3
+ //// /** @see {/*use1*/[|foooo|]} unknown reference*/
4
+ //// const a = ""
5
+
6
+ //// /** @see {/*use2*/[|@bar|] } invalid tag*/
7
+ //// const b = ""
8
+
9
+ //// /** @see /*use3*/[|foooo|] unknown reference without brace*/
10
+ //// const c = ""
11
+
12
+ //// /** @see /*use4*/[|@bar|] invalid tag without brace*/
13
+ //// const [|/*def1*/d|] = ""
14
+
15
+ //// /** @see {/*use5*/[|d@fff|] } partial reference */
16
+ //// const e = ""
17
+
18
+ //// /** @see /*use6*/[|@@@@@@|] total invalid tag*/
19
+ //// const f = ""
20
+
21
+ //// /** @see d@{/*use7*/[|fff|]} partial reference */
22
+ //// const g = ""
23
+
24
+ goTo . marker ( "use1" ) ;
25
+ verify . goToDefinition ( [ ] ) ;
26
+
27
+ goTo . marker ( "use2" ) ;
28
+ verify . goToDefinition ( [ ] ) ;
29
+
30
+ goTo . marker ( "use3" ) ;
31
+ verify . goToDefinition ( [ ] ) ;
32
+
33
+ goTo . marker ( "use4" ) ;
34
+ verify . goToDefinition ( [ ] ) ;
35
+
36
+ goTo . marker ( "use5" ) ;
37
+ verify . goToDefinitionIs ( "def1" ) ;
38
+
39
+ goTo . marker ( "use6" ) ;
40
+ verify . goToDefinition ( [ ] ) ;
41
+
42
+ goTo . marker ( "use7" ) ;
43
+ verify . goToDefinition ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments