mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
49 lines
1.1 KiB
JSON
49 lines
1.1 KiB
JSON
// === findAllReferences ===
|
|
// === /findAllRefsInsideWithBlock.ts ===
|
|
// /*FIND ALL REFS*/var [|x|] = 0;
|
|
//
|
|
// with ({}) {
|
|
// var y = x; // Reference of x here should not be picked
|
|
// y++; // also reference for y should be ignored
|
|
// }
|
|
//
|
|
// [|x|] = [|x|] + 1;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsInsideWithBlock.ts ===
|
|
// var /*FIND ALL REFS*/[|x|] = 0;
|
|
//
|
|
// with ({}) {
|
|
// var y = x; // Reference of x here should not be picked
|
|
// y++; // also reference for y should be ignored
|
|
// }
|
|
//
|
|
// [|x|] = [|x|] + 1;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsInsideWithBlock.ts ===
|
|
// var [|x|] = 0;
|
|
//
|
|
// with ({}) {
|
|
// var y = x; // Reference of x here should not be picked
|
|
// y++; // also reference for y should be ignored
|
|
// }
|
|
//
|
|
// /*FIND ALL REFS*/[|x|] = [|x|] + 1;
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsInsideWithBlock.ts ===
|
|
// var [|x|] = 0;
|
|
//
|
|
// with ({}) {
|
|
// var y = x; // Reference of x here should not be picked
|
|
// y++; // also reference for y should be ignored
|
|
// }
|
|
//
|
|
// [|x|] = /*FIND ALL REFS*/[|x|] + 1; |