Skip to content

Commit 7871d18

Browse files
committed
Merge branch 'master' into inlineSourceMaps
2 parents dd31afc + 0d2a5bb commit 7871d18

File tree

409 files changed

+8738
-3499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+8738
-3499
lines changed

Jakefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var compilerSources = [
3939
"utilities.ts",
4040
"binder.ts",
4141
"checker.ts",
42+
"declarationEmitter.ts",
4243
"emitter.ts",
4344
"program.ts",
4445
"commandLineParser.ts",
@@ -57,6 +58,7 @@ var servicesSources = [
5758
"utilities.ts",
5859
"binder.ts",
5960
"checker.ts",
61+
"declarationEmitter.ts",
6062
"emitter.ts",
6163
"program.ts",
6264
"commandLineParser.ts",
@@ -65,7 +67,7 @@ var servicesSources = [
6567
return path.join(compilerDirectory, f);
6668
}).concat([
6769
"breakpoints.ts",
68-
"navigateTo.ts",
70+
"navigateTo.ts",
6971
"navigationBar.ts",
7072
"outliningElementsCollector.ts",
7173
"patternMatcher.ts",
@@ -539,7 +541,7 @@ function cleanTestDirs() {
539541
}
540542

541543
jake.mkdirP(localRwcBaseline);
542-
jake.mkdirP(localTest262Baseline);
544+
jake.mkdirP(localTest262Baseline);
543545
jake.mkdirP(localBaseline);
544546
}
545547

@@ -718,7 +720,7 @@ file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function() {
718720

719721
var instrumenterPath = harnessDirectory + 'instrumenter.ts';
720722
var instrumenterJsPath = builtLocalDirectory + 'instrumenter.js';
721-
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath], [], /*useBuiltCompiler*/ true);
723+
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true);
722724

723725
desc("Builds an instrumented tsc.js");
724726
task('tsc-instrumented', [loggedIOJsPath, instrumenterJsPath, tscFile], function() {

src/compiler/checker.ts

Lines changed: 109 additions & 31 deletions
Large diffs are not rendered by default.

src/compiler/core.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ module ts {
122122
}
123123

124124
export function addRange<T>(to: T[], from: T[]): void {
125-
for (let v of from) {
126-
to.push(v);
125+
if (to && from) {
126+
for (let v of from) {
127+
to.push(v);
128+
}
127129
}
128130
}
129131

src/compiler/declarationEmitter.ts

Lines changed: 1466 additions & 0 deletions
Large diffs are not rendered by default.

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ module ts {
344344
Cannot_redeclare_identifier_0_in_catch_clause: { code: 2492, category: DiagnosticCategory.Error, key: "Cannot redeclare identifier '{0}' in catch clause" },
345345
Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2: { code: 2493, category: DiagnosticCategory.Error, key: "Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'." },
346346
Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: { code: 2494, category: DiagnosticCategory.Error, key: "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher." },
347-
Type_0_is_not_an_array_type_or_a_string_type: { code: 2461, category: DiagnosticCategory.Error, key: "Type '{0}' is not an array type or a string type." },
347+
Type_0_is_not_an_array_type_or_a_string_type: { code: 2495, category: DiagnosticCategory.Error, key: "Type '{0}' is not an array type or a string type." },
348+
The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression: { code: 2496, category: DiagnosticCategory.Error, key: "The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression." },
348349
Import_declaration_0_is_using_private_name_1: { code: 4000, category: DiagnosticCategory.Error, key: "Import declaration '{0}' is using private name '{1}'." },
349350
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: { code: 4002, category: DiagnosticCategory.Error, key: "Type parameter '{0}' of exported class has or is using private name '{1}'." },
350351
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: { code: 4004, category: DiagnosticCategory.Error, key: "Type parameter '{0}' of exported interface has or is using private name '{1}'." },
@@ -414,6 +415,7 @@ module ts {
414415
Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: { code: 4077, category: DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'." },
415416
Parameter_0_of_exported_function_has_or_is_using_private_name_1: { code: 4078, category: DiagnosticCategory.Error, key: "Parameter '{0}' of exported function has or is using private name '{1}'." },
416417
Exported_type_alias_0_has_or_is_using_private_name_1: { code: 4081, category: DiagnosticCategory.Error, key: "Exported type alias '{0}' has or is using private name '{1}'." },
418+
Default_export_of_the_module_has_or_is_using_private_name_0: { code: 4082, category: DiagnosticCategory.Error, key: "Default export of the module has or is using private name '{0}'." },
417419
Loop_contains_block_scoped_variable_0_referenced_by_a_function_in_the_loop_This_is_only_supported_in_ECMAScript_6_or_higher: { code: 4091, category: DiagnosticCategory.Error, key: "Loop contains block-scoped variable '{0}' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher." },
418420
The_current_host_does_not_support_the_0_option: { code: 5001, category: DiagnosticCategory.Error, key: "The current host does not support the '{0}' option." },
419421
Cannot_find_the_common_subdirectory_path_for_the_input_files: { code: 5009, category: DiagnosticCategory.Error, key: "Cannot find the common subdirectory path for the input files." },
@@ -494,6 +496,5 @@ module ts {
494496
You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: { code: 8001, category: DiagnosticCategory.Error, key: "You cannot rename elements that are defined in the standard TypeScript library." },
495497
yield_expressions_are_not_currently_supported: { code: 9000, category: DiagnosticCategory.Error, key: "'yield' expressions are not currently supported." },
496498
Generators_are_not_currently_supported: { code: 9001, category: DiagnosticCategory.Error, key: "Generators are not currently supported." },
497-
The_arguments_object_cannot_be_referenced_in_an_arrow_function_Consider_using_a_standard_function_expression: { code: 9002, category: DiagnosticCategory.Error, key: "The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression." },
498499
};
499500
}

src/compiler/diagnosticMessages.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,11 @@
13701370
},
13711371
"Type '{0}' is not an array type or a string type.": {
13721372
"category": "Error",
1373-
"code": 2461
1373+
"code": 2495
1374+
},
1375+
"The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.": {
1376+
"category": "Error",
1377+
"code": 2496
13741378
},
13751379

13761380
"Import declaration '{0}' is using private name '{1}'.": {
@@ -1649,6 +1653,10 @@
16491653
"category": "Error",
16501654
"code": 4081
16511655
},
1656+
"Default export of the module has or is using private name '{0}'.": {
1657+
"category": "Error",
1658+
"code": 4082
1659+
},
16521660
"Loop contains block-scoped variable '{0}' referenced by a function in the loop. This is only supported in ECMAScript 6 or higher.": {
16531661
"category": "Error",
16541662
"code": 4091
@@ -1970,9 +1978,5 @@
19701978
"Generators are not currently supported.": {
19711979
"category": "Error",
19721980
"code": 9001
1973-
},
1974-
"The 'arguments' object cannot be referenced in an arrow function. Consider using a standard function expression.": {
1975-
"category": "Error",
1976-
"code": 9002
19771981
}
19781982
}

0 commit comments

Comments
 (0)