Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Migrate _everything_ to modules #35561

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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,237 changes: 31,343 additions & 34,894 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