11=== tests/cases/conformance/jsdoc/declarations/index.js ===
22/** @enum {string} */
33export const Target = {
4- >Target : Symbol(Target, Decl(index.js, 1, 12))
4+ >Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4) )
55
66 START: "start",
77>START : Symbol(START, Decl(index.js, 1, 23))
@@ -18,7 +18,7 @@ export const Target = {
1818}
1919/** @enum number */
2020export const Second = {
21- >Second : Symbol(Second, Decl(index.js, 9, 12))
21+ >Second : Symbol(Second, Decl(index.js, 9, 12), Decl(index.js, 8, 4) )
2222
2323 OK: 1,
2424>OK : Symbol(OK, Decl(index.js, 9, 23))
@@ -29,7 +29,7 @@ export const Second = {
2929}
3030/** @enum {function(number): number} */
3131export const Fs = {
32- >Fs : Symbol(Fs, Decl(index.js, 15, 12))
32+ >Fs : Symbol(Fs, Decl(index.js, 15, 12), Decl(index.js, 14, 4) )
3333
3434 ADD1: n => n + 1,
3535>ADD1 : Symbol(ADD1, Decl(index.js, 15, 19))
@@ -77,7 +77,7 @@ export function consume(t,s,f) {
7777 var v = Target.START
7878>v : Symbol(v, Decl(index.js, 34, 7))
7979>Target.START : Symbol(START, Decl(index.js, 1, 23))
80- >Target : Symbol(Target, Decl(index.js, 1, 12))
80+ >Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4) )
8181>START : Symbol(START, Decl(index.js, 1, 23))
8282
8383 v = 'something else' // allowed, like Typescript's classic enums and unlike its string enums
@@ -90,14 +90,14 @@ export function ff(s) {
9090
9191 // element access with arbitrary string is an error only with noImplicitAny
9292 if (!Target[s]) {
93- >Target : Symbol(Target, Decl(index.js, 1, 12))
93+ >Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4) )
9494>s : Symbol(s, Decl(index.js, 38, 19))
9595
9696 return null
9797 }
9898 else {
9999 return Target[s]
100- >Target : Symbol(Target, Decl(index.js, 1, 12))
100+ >Target : Symbol(Target, Decl(index.js, 1, 12), Decl(index.js, 0, 4) )
101101>s : Symbol(s, Decl(index.js, 38, 19))
102102 }
103103}
0 commit comments