mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Merge branch 'master' into updateRwcAndTest262Runner
This commit is contained in:
commit
78efa97484
10
Jakefile
10
Jakefile
@ -194,7 +194,7 @@ var compilerFilename = "tsc.js";
|
||||
* @param keepComments: false to compile using --removeComments
|
||||
* @param callback: a function to execute after the compilation process ends
|
||||
*/
|
||||
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOutFile, generateDeclarations, outDir, preserveConstEnums, keepComments, noResolve, callback) {
|
||||
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOutFile, generateDeclarations, outDir, preserveConstEnums, keepComments, noResolve, stripInternal, callback) {
|
||||
file(outFile, prereqs, function() {
|
||||
var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory;
|
||||
var options = "--module commonjs -noImplicitAny";
|
||||
@ -227,6 +227,10 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOu
|
||||
options += " -sourcemap -mapRoot file:///" + path.resolve(path.dirname(outFile));
|
||||
}
|
||||
|
||||
if (stripInternal) {
|
||||
options += " --stripInternal"
|
||||
}
|
||||
|
||||
var cmd = host + " " + dir + compilerFilename + " " + options + " ";
|
||||
cmd = cmd + sources.join(" ");
|
||||
console.log(cmd + "\n");
|
||||
@ -331,7 +335,8 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
|
||||
/*outDir*/ undefined,
|
||||
/*preserveConstEnums*/ true,
|
||||
/*keepComments*/ false,
|
||||
/*noResolve*/ false);
|
||||
/*noResolve*/ false,
|
||||
/*stripInternal*/ false);
|
||||
|
||||
var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
|
||||
var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts");
|
||||
@ -347,6 +352,7 @@ compileFile(nodeDefinitionsFile, servicesSources,[builtLocalDirectory, copyright
|
||||
/*preserveConstEnums*/ true,
|
||||
/*keepComments*/ true,
|
||||
/*noResolve*/ true,
|
||||
/*stripInternal*/ true,
|
||||
/*callback*/ function () {
|
||||
function makeDefinitionFiles(definitionsRoots, standaloneDefinitionsFile, nodeDefinitionsFile) {
|
||||
// Create the standalone definition file
|
||||
|
||||
@ -891,22 +891,6 @@ module ts {
|
||||
amdModuleName: string;
|
||||
referencedFiles: FileReference[];
|
||||
|
||||
// Diagnostics reported about the "///<reference" comments in the file.
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
|
||||
// Parse errors refer specifically to things the parser could not understand at all (like
|
||||
// missing tokens, or tokens it didn't know how to deal with).
|
||||
parseDiagnostics: Diagnostic[];
|
||||
|
||||
//getSyntacticDiagnostics(): Diagnostic[];
|
||||
|
||||
// File level diagnostics reported by the binder.
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
|
||||
// Returns all syntactic diagnostics (i.e. the reference, parser and grammar diagnostics).
|
||||
// This field should never be used directly, use getSyntacticDiagnostics function instead.
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
|
||||
hasNoDefaultLib: boolean;
|
||||
externalModuleIndicator: Node; // The first node that causes this file to be an external module
|
||||
nodeCount: number;
|
||||
@ -915,6 +899,25 @@ module ts {
|
||||
languageVersion: ScriptTarget;
|
||||
identifiers: Map<string>;
|
||||
|
||||
// @internal
|
||||
// Diagnostics reported about the "///<reference" comments in the file.
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
|
||||
// @internal
|
||||
// Parse errors refer specifically to things the parser could not understand at all (like
|
||||
// missing tokens, or tokens it didn't know how to deal with).
|
||||
parseDiagnostics: Diagnostic[];
|
||||
|
||||
// @internal
|
||||
// File level diagnostics reported by the binder.
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
|
||||
// @internal
|
||||
// Returns all syntactic diagnostics (i.e. the reference, parser and grammar diagnostics).
|
||||
// This field should never be used directly, use getSyntacticDiagnostics function instead.
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
|
||||
// @internal
|
||||
// Stores a line map for the file.
|
||||
// This field should never be used directly to obtain line map, use getLineMap function instead.
|
||||
lineMap: number[];
|
||||
|
||||
@ -728,10 +728,6 @@ declare module "typescript" {
|
||||
amdDependencies: string[];
|
||||
amdModuleName: string;
|
||||
referencedFiles: FileReference[];
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
parseDiagnostics: Diagnostic[];
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
hasNoDefaultLib: boolean;
|
||||
externalModuleIndicator: Node;
|
||||
nodeCount: number;
|
||||
@ -739,7 +735,6 @@ declare module "typescript" {
|
||||
symbolCount: number;
|
||||
languageVersion: ScriptTarget;
|
||||
identifiers: Map<string>;
|
||||
lineMap: number[];
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
getCompilerOptions(): CompilerOptions;
|
||||
|
||||
@ -2219,22 +2219,6 @@ declare module "typescript" {
|
||||
>referencedFiles : FileReference[]
|
||||
>FileReference : FileReference
|
||||
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
>referenceDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
parseDiagnostics: Diagnostic[];
|
||||
>parseDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
>semanticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
>syntacticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
hasNoDefaultLib: boolean;
|
||||
>hasNoDefaultLib : boolean
|
||||
|
||||
@ -2258,9 +2242,6 @@ declare module "typescript" {
|
||||
identifiers: Map<string>;
|
||||
>identifiers : Map<string>
|
||||
>Map : Map<T>
|
||||
|
||||
lineMap: number[];
|
||||
>lineMap : number[]
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
>ScriptReferenceHost : ScriptReferenceHost
|
||||
|
||||
@ -757,10 +757,6 @@ declare module "typescript" {
|
||||
amdDependencies: string[];
|
||||
amdModuleName: string;
|
||||
referencedFiles: FileReference[];
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
parseDiagnostics: Diagnostic[];
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
hasNoDefaultLib: boolean;
|
||||
externalModuleIndicator: Node;
|
||||
nodeCount: number;
|
||||
@ -768,7 +764,6 @@ declare module "typescript" {
|
||||
symbolCount: number;
|
||||
languageVersion: ScriptTarget;
|
||||
identifiers: Map<string>;
|
||||
lineMap: number[];
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
getCompilerOptions(): CompilerOptions;
|
||||
|
||||
@ -2349,22 +2349,6 @@ declare module "typescript" {
|
||||
>referencedFiles : FileReference[]
|
||||
>FileReference : FileReference
|
||||
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
>referenceDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
parseDiagnostics: Diagnostic[];
|
||||
>parseDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
>semanticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
>syntacticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
hasNoDefaultLib: boolean;
|
||||
>hasNoDefaultLib : boolean
|
||||
|
||||
@ -2388,9 +2372,6 @@ declare module "typescript" {
|
||||
identifiers: Map<string>;
|
||||
>identifiers : Map<string>
|
||||
>Map : Map<T>
|
||||
|
||||
lineMap: number[];
|
||||
>lineMap : number[]
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
>ScriptReferenceHost : ScriptReferenceHost
|
||||
|
||||
@ -758,10 +758,6 @@ declare module "typescript" {
|
||||
amdDependencies: string[];
|
||||
amdModuleName: string;
|
||||
referencedFiles: FileReference[];
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
parseDiagnostics: Diagnostic[];
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
hasNoDefaultLib: boolean;
|
||||
externalModuleIndicator: Node;
|
||||
nodeCount: number;
|
||||
@ -769,7 +765,6 @@ declare module "typescript" {
|
||||
symbolCount: number;
|
||||
languageVersion: ScriptTarget;
|
||||
identifiers: Map<string>;
|
||||
lineMap: number[];
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
getCompilerOptions(): CompilerOptions;
|
||||
|
||||
@ -2297,22 +2297,6 @@ declare module "typescript" {
|
||||
>referencedFiles : FileReference[]
|
||||
>FileReference : FileReference
|
||||
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
>referenceDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
parseDiagnostics: Diagnostic[];
|
||||
>parseDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
>semanticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
>syntacticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
hasNoDefaultLib: boolean;
|
||||
>hasNoDefaultLib : boolean
|
||||
|
||||
@ -2336,9 +2320,6 @@ declare module "typescript" {
|
||||
identifiers: Map<string>;
|
||||
>identifiers : Map<string>
|
||||
>Map : Map<T>
|
||||
|
||||
lineMap: number[];
|
||||
>lineMap : number[]
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
>ScriptReferenceHost : ScriptReferenceHost
|
||||
|
||||
@ -795,10 +795,6 @@ declare module "typescript" {
|
||||
amdDependencies: string[];
|
||||
amdModuleName: string;
|
||||
referencedFiles: FileReference[];
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
parseDiagnostics: Diagnostic[];
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
hasNoDefaultLib: boolean;
|
||||
externalModuleIndicator: Node;
|
||||
nodeCount: number;
|
||||
@ -806,7 +802,6 @@ declare module "typescript" {
|
||||
symbolCount: number;
|
||||
languageVersion: ScriptTarget;
|
||||
identifiers: Map<string>;
|
||||
lineMap: number[];
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
getCompilerOptions(): CompilerOptions;
|
||||
|
||||
@ -2475,22 +2475,6 @@ declare module "typescript" {
|
||||
>referencedFiles : FileReference[]
|
||||
>FileReference : FileReference
|
||||
|
||||
referenceDiagnostics: Diagnostic[];
|
||||
>referenceDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
parseDiagnostics: Diagnostic[];
|
||||
>parseDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
semanticDiagnostics: Diagnostic[];
|
||||
>semanticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
syntacticDiagnostics: Diagnostic[];
|
||||
>syntacticDiagnostics : Diagnostic[]
|
||||
>Diagnostic : Diagnostic
|
||||
|
||||
hasNoDefaultLib: boolean;
|
||||
>hasNoDefaultLib : boolean
|
||||
|
||||
@ -2514,9 +2498,6 @@ declare module "typescript" {
|
||||
identifiers: Map<string>;
|
||||
>identifiers : Map<string>
|
||||
>Map : Map<T>
|
||||
|
||||
lineMap: number[];
|
||||
>lineMap : number[]
|
||||
}
|
||||
interface ScriptReferenceHost {
|
||||
>ScriptReferenceHost : ScriptReferenceHost
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
// @module: commonjs
|
||||
// @includebuiltfile: typescript.d.ts
|
||||
// @stripInternal:true
|
||||
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
// @module: commonjs
|
||||
// @includebuiltfile: typescript.d.ts
|
||||
// @stripInternal:true
|
||||
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
// @module: commonjs
|
||||
// @includebuiltfile: typescript.d.ts
|
||||
// @stripInternal:true
|
||||
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
// @module: commonjs
|
||||
// @includebuiltfile: typescript.d.ts
|
||||
// @stripInternal:true
|
||||
|
||||
/*
|
||||
* Note: This test is a public API sample. The sample sources can be found
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user