File: referencesForGlobalsInExternalModule.ts

package info (click to toggle)
node-typescript 4.8.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 523,068 kB
  • sloc: javascript: 1,735,777; makefile: 7; sh: 1
file content (21 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/// <reference path='fourslash.ts'/>

// Global variable reference.

/////*1*/var /*2*/topLevelVar = 2;
////var topLevelVar2 = /*3*/topLevelVar;
////
/////*4*/class /*5*/topLevelClass { }
////var c = new /*6*/topLevelClass();
////
/////*7*/interface /*8*/topLevelInterface { }
////var i: /*9*/topLevelInterface;
////
/////*10*/module /*11*/topLevelModule {
////    export var x;
////}
////var x = /*12*/topLevelModule.x;
////
////export = x;

verify.baselineFindAllReferences('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');