Skip to content

Commit 987c8b9

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

File tree

451 files changed

+192200
-221135
lines changed

Some content is hidden

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

451 files changed

+192200
-221135
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

+3,496-3,898
Large diffs are not rendered by default.

src/compiler/builder.ts

+999-1,106
Large diffs are not rendered by default.

src/compiler/builderPublic.ts

+153-159
Large diffs are not rendered by default.

src/compiler/builderState.ts

+455-511
Large diffs are not rendered by default.

src/compiler/builderStatePublic.ts

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
namespace ts {
2-
export interface EmitOutput {
3-
outputFiles: OutputFile[];
4-
emitSkipped: boolean;
5-
/* @internal */ exportedModulesFromDeclarationEmit?: ExportedModulesFromDeclarationEmit;
6-
}
7-
8-
export interface OutputFile {
9-
name: string;
10-
writeByteOrderMark: boolean;
11-
text: string;
12-
}
13-
}
1+
import { ExportedModulesFromDeclarationEmit } from "./ts";
2+
export interface EmitOutput {
3+
outputFiles: OutputFile[];
4+
emitSkipped: boolean;
5+
/* @internal */ exportedModulesFromDeclarationEmit?: ExportedModulesFromDeclarationEmit;
6+
}
7+
export interface OutputFile {
8+
name: string;
9+
writeByteOrderMark: boolean;
10+
text: string;
11+
}

src/compiler/checker.ts

+30,340-33,765
Large diffs are not rendered by default.

src/compiler/commandLineParser.ts

+2,648-2,987
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)