File: unusedImports14FS.ts

package info (click to toggle)
node-typescript 4.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 396,552 kB
  • sloc: javascript: 1,444,377; makefile: 7; sh: 3
file content (15 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// <reference path='fourslash.ts' />

// @noUnusedLocals: true
// @Filename: file2.ts
//// [| import /* 1 */ A /* 2 */, /* 3 */ { /* 4 */ x /* 5 */ } /* 6 */ from './a'; |]
//// console.log(A);

// @Filename: file1.ts
//// export default 10;
//// export var x = 10;


// It's ambiguous which token comment /* 6 */ applies to or whether it should be removed.
// In the current implementation the comment is left behind, but this behavior isn't a requirement.
verify.rangeAfterCodeFix("import /* 1 */ A /* 2 */ /* 6 */ from './a';");