kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/typescript/testdata/for.ts (about) 1 export {}; 2 3 // This top-level 'x' is here so we ensure that that 'x's in the for loops 4 // doesn't get the same name. 5 //- @x defines/binding X 6 //- X.node/kind variable 7 const x = 3; 8 9 //- @x defines/binding X2 10 //- X2.node/kind variable 11 for (const x of [1, 2]) { 12 //- @x ref X2 13 x; 14 } 15 16 //- @#0x defines/binding X3 17 //- X3.node/kind variable 18 //- @#1x ref X3 19 //- @#2x ref X3 20 for (let x = 0; x < 1; x++) { 21 //- @x ref X3 22 x; 23 }