Skip to content

Commit 6a62c01

Browse files
author
Yui T
committed
Merge branch 'exponentiation' of https://github.com/Microsoft/TypeScript into exponentiation
2 parents 2918f9d + d57ee1d commit 6a62c01

2 files changed

Lines changed: 8 additions & 28 deletions

File tree

lib/lib.core.es6.d.ts

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3965,34 +3965,7 @@ interface ObjectConstructor {
39653965
* Copy the values of all of the enumerable own properties from one or more source objects to a
39663966
* target object. Returns the target object.
39673967
* @param target The target object to copy to.
3968-
* @param source The source object from which to copy properties.
3969-
*/
3970-
assign<T, U>(target: T, source: U): T & U;
3971-
3972-
/**
3973-
* Copy the values of all of the enumerable own properties from one or more source objects to a
3974-
* target object. Returns the target object.
3975-
* @param target The target object to copy to.
3976-
* @param source1 The first source object from which to copy properties.
3977-
* @param source2 The second source object from which to copy properties.
3978-
*/
3979-
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
3980-
3981-
/**
3982-
* Copy the values of all of the enumerable own properties from one or more source objects to a
3983-
* target object. Returns the target object.
3984-
* @param target The target object to copy to.
3985-
* @param source1 The first source object from which to copy properties.
3986-
* @param source2 The second source object from which to copy properties.
3987-
* @param source3 The third source object from which to copy properties.
3988-
*/
3989-
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
3990-
3991-
/**
3992-
* Copy the values of all of the enumerable own properties from one or more source objects to a
3993-
* target object. Returns the target object.
3994-
* @param target The target object to copy to.
3995-
* @param sources One or more source objects from which to copy properties
3968+
* @param sources One or more source objects to copy properties from.
39963969
*/
39973970
assign(target: any, ...sources: any[]): any;
39983971

src/compiler/emitter.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2864,6 +2864,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi
28642864
}
28652865
else {
28662866
emit(node.left);
2867+
// Add indentation before emit the operator if the operator is on different line
2868+
// For example:
2869+
// 3
2870+
// + 2;
2871+
// emitted as
2872+
// 3
2873+
// + 2;
28672874
let indentedBeforeOperator = indentIfOnDifferentLines(node, node.left, node.operatorToken, node.operatorToken.kind !== SyntaxKind.CommaToken ? " " : undefined);
28682875
write(tokenToString(node.operatorToken.kind));
28692876
let indentedAfterOperator = indentIfOnDifferentLines(node, node.operatorToken, node.right, " ");

0 commit comments

Comments
 (0)