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 Dec 16, 2019
1 parent 53c8b95 commit 987c8b9
Show file tree
Hide file tree
Showing 451 changed files with 192,200 additions and 221,135 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 {
try {
fs.statSync(name);
Expand All @@ -17,7 +14,6 @@ function pipeExists(name: string): boolean {
return false;
}
}

function createCancellationToken(args: string[]): ServerCancellationToken {
let cancellationPipeName: string | undefined;
for (let i = 0; i < args.length - 1; i++) {
Expand Down Expand Up @@ -61,7 +57,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,394 changes: 3,496 additions & 3,898 deletions src/compiler/binder.ts

Large diffs are not rendered by default.

2,105 changes: 999 additions & 1,106 deletions src/compiler/builder.ts

Large diffs are not rendered by default.

312 changes: 153 additions & 159 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;
}
64,105 changes: 30,340 additions & 33,765 deletions src/compiler/checker.ts

Large diffs are not rendered by default.

5,635 changes: 2,648 additions & 2,987 deletions src/compiler/commandLineParser.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 987c8b9

Please sign in to comment.