Skip to content

Commit d916393

Browse files
committed
add more case
1 parent 5b49a14 commit d916393

File tree

8 files changed

+123
-0
lines changed

8 files changed

+123
-0
lines changed

tests/baselines/reference/seeTag1.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ const a = ""
1414

1515
/** @see {NS.Bar} ns.bar*/
1616
const b = ""
17+
18+
/** @see {b} b */
19+
const c = ""
1720

1821

1922
//// [seeTag1.js]
2023
/** @see {Foo} foooo*/
2124
var a = "";
2225
/** @see {NS.Bar} ns.bar*/
2326
var b = "";
27+
/** @see {b} b */
28+
var c = "";
2429

2530

2631
//// [seeTag1.d.ts]
@@ -36,3 +41,5 @@ declare namespace NS {
3641
declare const a = "";
3742
/** @see {NS.Bar} ns.bar*/
3843
declare const b = "";
44+
/** @see {b} b */
45+
declare const c = "";

tests/baselines/reference/seeTag1.symbols

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ const a = ""
2626
const b = ""
2727
>b : Symbol(b, Decl(seeTag1.ts, 14, 5))
2828

29+
/** @see {b} b */
30+
const c = ""
31+
>c : Symbol(c, Decl(seeTag1.ts, 17, 5))
32+

tests/baselines/reference/seeTag1.types

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ const b = ""
2121
>b : ""
2222
>"" : ""
2323

24+
/** @see {b} b */
25+
const c = ""
26+
>c : ""
27+
>"" : ""
28+

tests/baselines/reference/seeTag2.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//// [seeTag2.ts]
2+
/** @see {} empty*/
3+
const a = ""
4+
5+
/** @see {aaaaaa} unknown name*/
6+
const b = ""
7+
8+
/** @see {?????} invalid */
9+
const c = ""
10+
11+
/** @see c without brace */
12+
const d = ""
13+
14+
/** @see ?????? */
15+
const e = ""
16+
17+
18+
//// [seeTag2.js]
19+
/** @see {} empty*/
20+
var a = "";
21+
/** @see {aaaaaa} unknown name*/
22+
var b = "";
23+
/** @see {?????} invalid */
24+
var c = "";
25+
/** @see c without brace */
26+
var d = "";
27+
/** @see ?????? */
28+
var e = "";
29+
30+
31+
//// [seeTag2.d.ts]
32+
/** @see {} empty*/
33+
declare const a = "";
34+
/** @see {aaaaaa} unknown name*/
35+
declare const b = "";
36+
/** @see {?????} invalid */
37+
declare const c = "";
38+
/** @see c without brace */
39+
declare const d = "";
40+
/** @see ?????? */
41+
declare const e = "";
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
=== tests/cases/conformance/jsdoc/seeTag2.ts ===
2+
/** @see {} empty*/
3+
const a = ""
4+
>a : Symbol(a, Decl(seeTag2.ts, 1, 5))
5+
6+
/** @see {aaaaaa} unknown name*/
7+
const b = ""
8+
>b : Symbol(b, Decl(seeTag2.ts, 4, 5))
9+
10+
/** @see {?????} invalid */
11+
const c = ""
12+
>c : Symbol(c, Decl(seeTag2.ts, 7, 5))
13+
14+
/** @see c without brace */
15+
const d = ""
16+
>d : Symbol(d, Decl(seeTag2.ts, 10, 5))
17+
18+
/** @see ?????? */
19+
const e = ""
20+
>e : Symbol(e, Decl(seeTag2.ts, 13, 5))
21+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
=== tests/cases/conformance/jsdoc/seeTag2.ts ===
2+
/** @see {} empty*/
3+
const a = ""
4+
>a : ""
5+
>"" : ""
6+
7+
/** @see {aaaaaa} unknown name*/
8+
const b = ""
9+
>b : ""
10+
>"" : ""
11+
12+
/** @see {?????} invalid */
13+
const c = ""
14+
>c : ""
15+
>"" : ""
16+
17+
/** @see c without brace */
18+
const d = ""
19+
>d : ""
20+
>"" : ""
21+
22+
/** @see ?????? */
23+
const e = ""
24+
>e : ""
25+
>"" : ""
26+

tests/cases/conformance/jsdoc/seeTag1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ const a = ""
1515

1616
/** @see {NS.Bar} ns.bar*/
1717
const b = ""
18+
19+
/** @see {b} b */
20+
const c = ""
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// @declaration: true
2+
3+
/** @see {} empty*/
4+
const a = ""
5+
6+
/** @see {aaaaaa} unknown name*/
7+
const b = ""
8+
9+
/** @see {?????} invalid */
10+
const c = ""
11+
12+
/** @see c without brace */
13+
const d = ""
14+
15+
/** @see ?????? */
16+
const e = ""

0 commit comments

Comments
 (0)