Skip to content

Commit cfacc0f

Browse files
committed
Migrate _everything_ to modules
1 parent 53c8b95 commit cfacc0f

File tree

798 files changed

+272240
-90879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

798 files changed

+272240
-90879
lines changed

src/cancellationToken/cancellationToken.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
/// <reference types="node"/>
2-
32
import fs = require("fs");
4-
53
interface ServerCancellationToken {
64
isCancellationRequested(): boolean;
75
setRequest(requestId: number): void;
86
resetRequest(requestId: number): void;
97
}
10-
118
function pipeExists(name: string): boolean {
129
try {
1310
fs.statSync(name);
@@ -17,7 +14,6 @@ function pipeExists(name: string): boolean {
1714
return false;
1815
}
1916
}
20-
2117
function createCancellationToken(args: string[]): ServerCancellationToken {
2218
let cancellationPipeName: string | undefined;
2319
for (let i = 0; i < args.length - 1; i++) {
@@ -61,7 +57,7 @@ function createCancellationToken(args: string[]): ServerCancellationToken {
6157
}
6258
else {
6359
return {
64-
isCancellationRequested: () => pipeExists(cancellationPipeName!), // TODO: GH#18217
60+
isCancellationRequested: () => pipeExists(cancellationPipeName!),
6561
setRequest: (_requestId: number): void => void 0,
6662
resetRequest: (_requestId: number): void => void 0
6763
};

src/compiler/binder.ts

+1,552-2,001
Large diffs are not rendered by default.

src/compiler/builder.ts

+289-439
Large diffs are not rendered by default.

src/compiler/builderPublic.ts

+34-39
Large diffs are not rendered by default.

src/compiler/builderState.ts

+84-144
Large diffs are not rendered by default.

src/compiler/builderStatePublic.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ namespace ts {
22
export interface EmitOutput {
33
outputFiles: OutputFile[];
44
emitSkipped: boolean;
5-
/* @internal */ exportedModulesFromDeclarationEmit?: ExportedModulesFromDeclarationEmit;
5+
/* @internal */ exportedModulesFromDeclarationEmit?: ts.ExportedModulesFromDeclarationEmit;
66
}
7-
87
export interface OutputFile {
98
name: string;
109
writeByteOrderMark: boolean;
1110
text: string;
1211
}
13-
}
12+
}

src/compiler/checker.ts

+10,757-14,220
Large diffs are not rendered by default.

src/compiler/commandLineParser.ts

+687-1,026
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)