Skip to content

Commit

Permalink
Migrate _everything_ to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Feb 28, 2020
1 parent 6a1e474 commit 00c1d9d
Show file tree
Hide file tree
Showing 466 changed files with 198,323 additions and 227,804 deletions.
6 changes: 1 addition & 5 deletions src/cancellationToken/cancellationToken.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/// <reference types="node"/>

import fs = require("fs");

interface ServerCancellationToken {
isCancellationRequested(): boolean;
setRequest(requestId: number): void;
resetRequest(requestId: number): void;
}

function pipeExists(name: string): boolean {
// Unlike statSync, existsSync doesn't throw an exception if the target doesn't exist.
// A comment in the node code suggests they're stuck with that decision for back compat
Expand All @@ -18,7 +15,6 @@ function pipeExists(name: string): boolean {
// implementation returned false from its catch block.
return fs.existsSync(name);
}

function createCancellationToken(args: string[]): ServerCancellationToken {
let cancellationPipeName: string | undefined;
for (let i = 0; i < args.length - 1; i++) {
Expand Down Expand Up @@ -62,7 +58,7 @@ function createCancellationToken(args: string[]): ServerCancellationToken {
}
else {
return {
isCancellationRequested: () => pipeExists(cancellationPipeName!), // TODO: GH#18217
isCancellationRequested: () => pipeExists(cancellationPipeName!),
setRequest: (_requestId: number): void => void 0,
resetRequest: (_requestId: number): void => void 0
};
Expand Down
7,778 changes: 3,682 additions & 4,096 deletions src/compiler/binder.ts

Large diffs are not rendered by default.

2,110 changes: 1,002 additions & 1,108 deletions src/compiler/builder.ts

Large diffs are not rendered by default.

316 changes: 155 additions & 161 deletions src/compiler/builderPublic.ts

Large diffs are not rendered by default.

966 changes: 455 additions & 511 deletions src/compiler/builderState.ts

Large diffs are not rendered by default.

24 changes: 11 additions & 13 deletions src/compiler/builderStatePublic.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
namespace ts {
export interface EmitOutput {
outputFiles: OutputFile[];
emitSkipped: boolean;
/* @internal */ exportedModulesFromDeclarationEmit?: ExportedModulesFromDeclarationEmit;
}

export interface OutputFile {
name: string;
writeByteOrderMark: boolean;
text: string;
}
}
import { ExportedModulesFromDeclarationEmit } from "./ts";
export interface EmitOutput {
outputFiles: OutputFile[];
emitSkipped: boolean;
/* @internal */ exportedModulesFromDeclarationEmit?: ExportedModulesFromDeclarationEmit;
}
export interface OutputFile {
name: string;
writeByteOrderMark: boolean;
text: string;
}
66,146 changes: 31,300 additions & 34,846 deletions src/compiler/checker.ts

Large diffs are not rendered by default.

5,743 changes: 2,703 additions & 3,040 deletions src/compiler/commandLineParser.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 00c1d9d

Please sign in to comment.