File: findAllRefsReExportLocal.ts

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (27 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/// <reference path='fourslash.ts' />

// @noLib: true

// @Filename: /a.ts
////[|var /*ax0*/[|{| "isDefinition": true, "contextRangeIndex": 0 |}x|];|]
////[|export { /*ax1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|] };|]
////[|export { /*ax2*/[|{| "contextRangeIndex": 4 |}x|] as /*ay*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}y|] };|]

// @Filename: /b.ts
////[|import { /*bx0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 7 |}x|], /*by0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 7 |}y|] } from "./a";|]
/////*bx1*/[|x|]; /*by1*/[|y|];

verify.noErrors();

const [ax0Def, ax0, ax1Def, ax1, ax2Def, ax2, ay, bx0Def, bx0, by0, bx1, by1] = test.ranges();
const bxRanges = [bx0, bx1];
const byRanges = [by0, by1];

verify.baselineCommands(
    { type: "findAllReferences", markerOrRange: ['ax0', 'ax1', 'ax2', 'bx0', 'bx1', 'ay', 'by0', 'by1'] },
    { type: "findRenameLocations", markerOrRange: [ax0, ax2] },
    { type: "findRenameLocations", markerOrRange: ax1 },
    { type: "findRenameLocations", markerOrRange: bxRanges },
    { type: "findRenameLocations", markerOrRange: ay },
    { type: "findRenameLocations", markerOrRange: byRanges },
);