+60
-111
lines changedFilter options
+60
-111
lines changed Original file line number Diff line number Diff line change
@@ -194,7 +194,7 @@ var compilerFilename = "tsc.js";
194
194
* @param keepComments: false to compile using --removeComments
195
195
* @param callback: a function to execute after the compilation process ends
196
196
*/
197
-
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOutFile, generateDeclarations, outDir, preserveConstEnums, keepComments, noResolve, callback) {
197
+
function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOutFile, generateDeclarations, outDir, preserveConstEnums, keepComments, noResolve, stripInternal, callback) {
198
198
file(outFile, prereqs, function() {
199
199
var dir = useBuiltCompiler ? builtLocalDirectory : LKGDirectory;
200
200
var options = "--module commonjs -noImplicitAny";
@@ -227,6 +227,10 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, noOu
227
227
options += " -sourcemap -mapRoot file:///" + path.resolve(path.dirname(outFile));
228
228
}
229
229
230
+
if (stripInternal) {
231
+
options += " --stripInternal"
232
+
}
233
+
230
234
var cmd = host + " " + dir + compilerFilename + " " + options + " ";
231
235
cmd = cmd + sources.join(" ");
232
236
console.log(cmd + "\n");
@@ -331,7 +335,8 @@ compileFile(servicesFile, servicesSources,[builtLocalDirectory, copyright].conca
331
335
/*outDir*/ undefined,
332
336
/*preserveConstEnums*/ true,
333
337
/*keepComments*/ false,
334
-
/*noResolve*/ false);
338
+
/*noResolve*/ false,
339
+
/*stripInternal*/ false);
335
340
336
341
var nodeDefinitionsFile = path.join(builtLocalDirectory, "typescript.d.ts");
337
342
var standaloneDefinitionsFile = path.join(builtLocalDirectory, "typescriptServices.d.ts");
@@ -347,6 +352,7 @@ compileFile(nodeDefinitionsFile, servicesSources,[builtLocalDirectory, copyright
347
352
/*preserveConstEnums*/ true,
348
353
/*keepComments*/ true,
349
354
/*noResolve*/ true,
355
+
/*stripInternal*/ true,
350
356
/*callback*/ function () {
351
357
function makeDefinitionFiles(definitionsRoots, standaloneDefinitionsFile, nodeDefinitionsFile) {
352
358
// Create the standalone definition file
Original file line number Diff line number Diff line change
@@ -891,30 +891,33 @@ module ts {
891
891
amdModuleName: string;
892
892
referencedFiles: FileReference[];
893
893
894
+
hasNoDefaultLib: boolean;
895
+
externalModuleIndicator: Node; // The first node that causes this file to be an external module
896
+
nodeCount: number;
897
+
identifierCount: number;
898
+
symbolCount: number;
899
+
languageVersion: ScriptTarget;
900
+
identifiers: Map<string>;
901
+
902
+
// @internal
894
903
// Diagnostics reported about the "///<reference" comments in the file.
895
904
referenceDiagnostics: Diagnostic[];
896
-
905
+
906
+
// @internal
897
907
// Parse errors refer specifically to things the parser could not understand at all (like
898
908
// missing tokens, or tokens it didn't know how to deal with).
899
909
parseDiagnostics: Diagnostic[];
900
-
901
-
//getSyntacticDiagnostics(): Diagnostic[];
902
-
910
+
911
+
// @internal
903
912
// File level diagnostics reported by the binder.
904
913
semanticDiagnostics: Diagnostic[];
905
-
914
+
915
+
// @internal
906
916
// Returns all syntactic diagnostics (i.e. the reference, parser and grammar diagnostics).
907
917
// This field should never be used directly, use getSyntacticDiagnostics function instead.
908
918
syntacticDiagnostics: Diagnostic[];
909
919
910
-
hasNoDefaultLib: boolean;
911
-
externalModuleIndicator: Node; // The first node that causes this file to be an external module
912
-
nodeCount: number;
913
-
identifierCount: number;
914
-
symbolCount: number;
915
-
languageVersion: ScriptTarget;
916
-
identifiers: Map<string>;
917
-
920
+
// @internal
918
921
// Stores a line map for the file.
919
922
// This field should never be used directly to obtain line map, use getLineMap function instead.
920
923
lineMap: number[];
Original file line number Diff line number Diff line change
@@ -728,18 +728,13 @@ declare module "typescript" {
728
728
amdDependencies: string[];
729
729
amdModuleName: string;
730
730
referencedFiles: FileReference[];
731
-
referenceDiagnostics: Diagnostic[];
732
-
parseDiagnostics: Diagnostic[];
733
-
semanticDiagnostics: Diagnostic[];
734
-
syntacticDiagnostics: Diagnostic[];
735
731
hasNoDefaultLib: boolean;
736
732
externalModuleIndicator: Node;
737
733
nodeCount: number;
738
734
identifierCount: number;
739
735
symbolCount: number;
740
736
languageVersion: ScriptTarget;
741
737
identifiers: Map<string>;
742
-
lineMap: number[];
743
738
}
744
739
interface ScriptReferenceHost {
745
740
getCompilerOptions(): CompilerOptions;
@@ -1186,6 +1181,7 @@ declare module "typescript" {
1186
1181
target?: ScriptTarget;
1187
1182
version?: boolean;
1188
1183
watch?: boolean;
1184
+
stripInternal?: boolean;
1189
1185
[option: string]: string | number | boolean;
1190
1186
}
1191
1187
const enum ModuleKind {
@@ -1216,6 +1212,7 @@ declare module "typescript" {
1216
1212
description?: DiagnosticMessage;
1217
1213
paramType?: DiagnosticMessage;
1218
1214
error?: DiagnosticMessage;
1215
+
experimental?: boolean;
1219
1216
}
1220
1217
const enum CharacterCodes {
1221
1218
nullCharacter = 0,
Original file line number Diff line number Diff line change
@@ -2219,22 +2219,6 @@ declare module "typescript" {
2219
2219
>referencedFiles : FileReference[]
2220
2220
>FileReference : FileReference
2221
2221
2222
-
referenceDiagnostics: Diagnostic[];
2223
-
>referenceDiagnostics : Diagnostic[]
2224
-
>Diagnostic : Diagnostic
2225
-
2226
-
parseDiagnostics: Diagnostic[];
2227
-
>parseDiagnostics : Diagnostic[]
2228
-
>Diagnostic : Diagnostic
2229
-
2230
-
semanticDiagnostics: Diagnostic[];
2231
-
>semanticDiagnostics : Diagnostic[]
2232
-
>Diagnostic : Diagnostic
2233
-
2234
-
syntacticDiagnostics: Diagnostic[];
2235
-
>syntacticDiagnostics : Diagnostic[]
2236
-
>Diagnostic : Diagnostic
2237
-
2238
2222
hasNoDefaultLib: boolean;
2239
2223
>hasNoDefaultLib : boolean
2240
2224
@@ -2258,9 +2242,6 @@ declare module "typescript" {
2258
2242
identifiers: Map<string>;
2259
2243
>identifiers : Map<string>
2260
2244
>Map : Map<T>
2261
-
2262
-
lineMap: number[];
2263
-
>lineMap : number[]
2264
2245
}
2265
2246
interface ScriptReferenceHost {
2266
2247
>ScriptReferenceHost : ScriptReferenceHost
@@ -3818,6 +3799,9 @@ declare module "typescript" {
3818
3799
watch?: boolean;
3819
3800
>watch : boolean
3820
3801
3802
+
stripInternal?: boolean;
3803
+
>stripInternal : boolean
3804
+
3821
3805
[option: string]: string | number | boolean;
3822
3806
>option : string
3823
3807
}
@@ -3898,6 +3882,9 @@ declare module "typescript" {
3898
3882
error?: DiagnosticMessage;
3899
3883
>error : DiagnosticMessage
3900
3884
>DiagnosticMessage : DiagnosticMessage
3885
+
3886
+
experimental?: boolean;
3887
+
>experimental : boolean
3901
3888
}
3902
3889
const enum CharacterCodes {
3903
3890
>CharacterCodes : CharacterCodes
Original file line number Diff line number Diff line change
@@ -757,18 +757,13 @@ declare module "typescript" {
757
757
amdDependencies: string[];
758
758
amdModuleName: string;
759
759
referencedFiles: FileReference[];
760
-
referenceDiagnostics: Diagnostic[];
761
-
parseDiagnostics: Diagnostic[];
762
-
semanticDiagnostics: Diagnostic[];
763
-
syntacticDiagnostics: Diagnostic[];
764
760
hasNoDefaultLib: boolean;
765
761
externalModuleIndicator: Node;
766
762
nodeCount: number;
767
763
identifierCount: number;
768
764
symbolCount: number;
769
765
languageVersion: ScriptTarget;
770
766
identifiers: Map<string>;
771
-
lineMap: number[];
772
767
}
773
768
interface ScriptReferenceHost {
774
769
getCompilerOptions(): CompilerOptions;
@@ -1215,6 +1210,7 @@ declare module "typescript" {
1215
1210
target?: ScriptTarget;
1216
1211
version?: boolean;
1217
1212
watch?: boolean;
1213
+
stripInternal?: boolean;
1218
1214
[option: string]: string | number | boolean;
1219
1215
}
1220
1216
const enum ModuleKind {
@@ -1245,6 +1241,7 @@ declare module "typescript" {
1245
1241
description?: DiagnosticMessage;
1246
1242
paramType?: DiagnosticMessage;
1247
1243
error?: DiagnosticMessage;
1244
+
experimental?: boolean;
1248
1245
}
1249
1246
const enum CharacterCodes {
1250
1247
nullCharacter = 0,
Original file line number Diff line number Diff line change
@@ -2349,22 +2349,6 @@ declare module "typescript" {
2349
2349
>referencedFiles : FileReference[]
2350
2350
>FileReference : FileReference
2351
2351
2352
-
referenceDiagnostics: Diagnostic[];
2353
-
>referenceDiagnostics : Diagnostic[]
2354
-
>Diagnostic : Diagnostic
2355
-
2356
-
parseDiagnostics: Diagnostic[];
2357
-
>parseDiagnostics : Diagnostic[]
2358
-
>Diagnostic : Diagnostic
2359
-
2360
-
semanticDiagnostics: Diagnostic[];
2361
-
>semanticDiagnostics : Diagnostic[]
2362
-
>Diagnostic : Diagnostic
2363
-
2364
-
syntacticDiagnostics: Diagnostic[];
2365
-
>syntacticDiagnostics : Diagnostic[]
2366
-
>Diagnostic : Diagnostic
2367
-
2368
2352
hasNoDefaultLib: boolean;
2369
2353
>hasNoDefaultLib : boolean
2370
2354
@@ -2388,9 +2372,6 @@ declare module "typescript" {
2388
2372
identifiers: Map<string>;
2389
2373
>identifiers : Map<string>
2390
2374
>Map : Map<T>
2391
-
2392
-
lineMap: number[];
2393
-
>lineMap : number[]
2394
2375
}
2395
2376
interface ScriptReferenceHost {
2396
2377
>ScriptReferenceHost : ScriptReferenceHost
@@ -3948,6 +3929,9 @@ declare module "typescript" {
3948
3929
watch?: boolean;
3949
3930
>watch : boolean
3950
3931
3932
+
stripInternal?: boolean;
3933
+
>stripInternal : boolean
3934
+
3951
3935
[option: string]: string | number | boolean;
3952
3936
>option : string
3953
3937
}
@@ -4028,6 +4012,9 @@ declare module "typescript" {
4028
4012
error?: DiagnosticMessage;
4029
4013
>error : DiagnosticMessage
4030
4014
>DiagnosticMessage : DiagnosticMessage
4015
+
4016
+
experimental?: boolean;
4017
+
>experimental : boolean
4031
4018
}
4032
4019
const enum CharacterCodes {
4033
4020
>CharacterCodes : CharacterCodes
Original file line number Diff line number Diff line change
@@ -758,18 +758,13 @@ declare module "typescript" {
758
758
amdDependencies: string[];
759
759
amdModuleName: string;
760
760
referencedFiles: FileReference[];
761
-
referenceDiagnostics: Diagnostic[];
762
-
parseDiagnostics: Diagnostic[];
763
-
semanticDiagnostics: Diagnostic[];
764
-
syntacticDiagnostics: Diagnostic[];
765
761
hasNoDefaultLib: boolean;
766
762
externalModuleIndicator: Node;
767
763
nodeCount: number;
768
764
identifierCount: number;
769
765
symbolCount: number;
770
766
languageVersion: ScriptTarget;
771
767
identifiers: Map<string>;
772
-
lineMap: number[];
773
768
}
774
769
interface ScriptReferenceHost {
775
770
getCompilerOptions(): CompilerOptions;
@@ -1216,6 +1211,7 @@ declare module "typescript" {
1216
1211
target?: ScriptTarget;
1217
1212
version?: boolean;
1218
1213
watch?: boolean;
1214
+
stripInternal?: boolean;
1219
1215
[option: string]: string | number | boolean;
1220
1216
}
1221
1217
const enum ModuleKind {
@@ -1246,6 +1242,7 @@ declare module "typescript" {
1246
1242
description?: DiagnosticMessage;
1247
1243
paramType?: DiagnosticMessage;
1248
1244
error?: DiagnosticMessage;
1245
+
experimental?: boolean;
1249
1246
}
1250
1247
const enum CharacterCodes {
1251
1248
nullCharacter = 0,
Original file line number Diff line number Diff line change
@@ -2297,22 +2297,6 @@ declare module "typescript" {
2297
2297
>referencedFiles : FileReference[]
2298
2298
>FileReference : FileReference
2299
2299
2300
-
referenceDiagnostics: Diagnostic[];
2301
-
>referenceDiagnostics : Diagnostic[]
2302
-
>Diagnostic : Diagnostic
2303
-
2304
-
parseDiagnostics: Diagnostic[];
2305
-
>parseDiagnostics : Diagnostic[]
2306
-
>Diagnostic : Diagnostic
2307
-
2308
-
semanticDiagnostics: Diagnostic[];
2309
-
>semanticDiagnostics : Diagnostic[]
2310
-
>Diagnostic : Diagnostic
2311
-
2312
-
syntacticDiagnostics: Diagnostic[];
2313
-
>syntacticDiagnostics : Diagnostic[]
2314
-
>Diagnostic : Diagnostic
2315
-
2316
2300
hasNoDefaultLib: boolean;
2317
2301
>hasNoDefaultLib : boolean
2318
2302
@@ -2336,9 +2320,6 @@ declare module "typescript" {
2336
2320
identifiers: Map<string>;
2337
2321
>identifiers : Map<string>
2338
2322
>Map : Map<T>
2339
-
2340
-
lineMap: number[];
2341
-
>lineMap : number[]
2342
2323
}
2343
2324
interface ScriptReferenceHost {
2344
2325
>ScriptReferenceHost : ScriptReferenceHost
@@ -3896,6 +3877,9 @@ declare module "typescript" {
3896
3877
watch?: boolean;
3897
3878
>watch : boolean
3898
3879
3880
+
stripInternal?: boolean;
3881
+
>stripInternal : boolean
3882
+
3899
3883
[option: string]: string | number | boolean;
3900
3884
>option : string
3901
3885
}
@@ -3976,6 +3960,9 @@ declare module "typescript" {
3976
3960
error?: DiagnosticMessage;
3977
3961
>error : DiagnosticMessage
3978
3962
>DiagnosticMessage : DiagnosticMessage
3963
+
3964
+
experimental?: boolean;
3965
+
>experimental : boolean
3979
3966
}
3980
3967
const enum CharacterCodes {
3981
3968
>CharacterCodes : CharacterCodes
Original file line number Diff line number Diff line change
@@ -795,18 +795,13 @@ declare module "typescript" {
795
795
amdDependencies: string[];
796
796
amdModuleName: string;
797
797
referencedFiles: FileReference[];
798
-
referenceDiagnostics: Diagnostic[];
799
-
parseDiagnostics: Diagnostic[];
800
-
semanticDiagnostics: Diagnostic[];
801
-
syntacticDiagnostics: Diagnostic[];
802
798
hasNoDefaultLib: boolean;
803
799
externalModuleIndicator: Node;
804
800
nodeCount: number;
805
801
identifierCount: number;
806
802
symbolCount: number;
807
803
languageVersion: ScriptTarget;
808
804
identifiers: Map<string>;
809
-
lineMap: number[];
810
805
}
811
806
interface ScriptReferenceHost {
812
807
getCompilerOptions(): CompilerOptions;
@@ -1253,6 +1248,7 @@ declare module "typescript" {
1253
1248
target?: ScriptTarget;
1254
1249
version?: boolean;
1255
1250
watch?: boolean;
1251
+
stripInternal?: boolean;
1256
1252
[option: string]: string | number | boolean;
1257
1253
}
1258
1254
const enum ModuleKind {
@@ -1283,6 +1279,7 @@ declare module "typescript" {
1283
1279
description?: DiagnosticMessage;
1284
1280
paramType?: DiagnosticMessage;
1285
1281
error?: DiagnosticMessage;
1282
+
experimental?: boolean;
1286
1283
}
1287
1284
const enum CharacterCodes {
1288
1285
nullCharacter = 0,
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4