Skip to content

Commit 9aee22b

Browse files
Merge branch 'master' into newLanguageService
Conflicts: src/compiler/diagnosticInformationMap.generated.ts src/compiler/diagnosticMessages.json src/harness/fourslash.ts src/harness/harness.ts src/harness/harnessLanguageService.ts src/harness/rwcRunner.ts src/services/services.ts
2 parents 933f416 + 92e3202 commit 9aee22b

File tree

3,945 files changed

+175718
-25448
lines changed

Some content is hidden

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

3,945 files changed

+175718
-25448
lines changed

Jakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ var harnessSources = [
7171
"fourslashRunner.ts",
7272
"projectsRunner.ts",
7373
"unittestrunner.ts",
74+
"loggedIO.ts",
7475
"rwcRunner.ts",
7576
"runner.ts"
7677
].map(function (f) {

bin/lib.core.d.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,24 @@ declare var JSON: JSON;
956956
/////////////////////////////
957957

958958
interface Array<T> {
959+
/**
960+
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
961+
*/
962+
length: number;
959963
/**
960964
* Returns a string representation of an array.
961965
*/
962966
toString(): string;
963967
toLocaleString(): string;
968+
/**
969+
* Appends new elements to an array, and returns the new length of the array.
970+
* @param items New elements of the Array.
971+
*/
972+
push(...items: T[]): number;
973+
/**
974+
* Removes the last element from an array and returns it.
975+
*/
976+
pop(): T;
964977
/**
965978
* Combines two or more arrays.
966979
* @param items Additional items to add to the end of array1.
@@ -976,15 +989,6 @@ interface Array<T> {
976989
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
977990
*/
978991
join(separator?: string): string;
979-
/**
980-
* Removes the last element from an array and returns it.
981-
*/
982-
pop(): T;
983-
/**
984-
* Appends new elements to an array, and returns the new length of the array.
985-
* @param items New elements of the Array.
986-
*/
987-
push(...items: T[]): number;
988992
/**
989993
* Reverses the elements in an Array.
990994
*/
@@ -1101,11 +1105,6 @@ interface Array<T> {
11011105
*/
11021106
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
11031107

1104-
/**
1105-
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
1106-
*/
1107-
length: number;
1108-
11091108
[n: number]: T;
11101109
}
11111110
declare var Array: {

bin/lib.d.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,24 @@ declare var JSON: JSON;
956956
/////////////////////////////
957957

958958
interface Array<T> {
959+
/**
960+
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
961+
*/
962+
length: number;
959963
/**
960964
* Returns a string representation of an array.
961965
*/
962966
toString(): string;
963967
toLocaleString(): string;
968+
/**
969+
* Appends new elements to an array, and returns the new length of the array.
970+
* @param items New elements of the Array.
971+
*/
972+
push(...items: T[]): number;
973+
/**
974+
* Removes the last element from an array and returns it.
975+
*/
976+
pop(): T;
964977
/**
965978
* Combines two or more arrays.
966979
* @param items Additional items to add to the end of array1.
@@ -976,15 +989,6 @@ interface Array<T> {
976989
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
977990
*/
978991
join(separator?: string): string;
979-
/**
980-
* Removes the last element from an array and returns it.
981-
*/
982-
pop(): T;
983-
/**
984-
* Appends new elements to an array, and returns the new length of the array.
985-
* @param items New elements of the Array.
986-
*/
987-
push(...items: T[]): number;
988992
/**
989993
* Reverses the elements in an Array.
990994
*/
@@ -1101,11 +1105,6 @@ interface Array<T> {
11011105
*/
11021106
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
11031107

1104-
/**
1105-
* Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
1106-
*/
1107-
length: number;
1108-
11091108
[n: number]: T;
11101109
}
11111110
declare var Array: {

bin/tsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('./tc.js')
2+
require('./tsc.js')

bin/tsc.js

Lines changed: 1435 additions & 665 deletions
Large diffs are not rendered by default.

bin/typescriptServices.js

Lines changed: 1692 additions & 833 deletions
Large diffs are not rendered by default.

src/compiler/checker.ts

Lines changed: 508 additions & 252 deletions
Large diffs are not rendered by default.

src/compiler/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ module ts {
6868
}
6969

7070
export function concatenate<T>(array1: T[], array2: T[]): T[] {
71-
if (!array2.length) return array1;
72-
if (!array1.length) return array2;
71+
if (!array2 || !array2.length) return array1;
72+
if (!array1 || !array1.length) return array2;
7373
return array1.concat(array2);
7474
}
7575

@@ -564,7 +564,7 @@ module ts {
564564
var currentAssertionLevel = AssertionLevel.None;
565565

566566
export function shouldAssert(level: AssertionLevel): boolean {
567-
return this.currentAssertionLevel >= level;
567+
return currentAssertionLevel >= level;
568568
}
569569

570570
export function assert(expression: any, message?: string, verboseDebugInfo?: () => string): void {

0 commit comments

Comments
 (0)