Commit Graph

10142 Commits

Author SHA1 Message Date
Wesley Wigham
139f10fb44 test for and fix #6043 2015-12-10 14:08:50 -08:00
Anders Hejlsberg
5ab5338574 Fix declaration emitter scoping issue for type parameter constraints 2015-12-10 13:55:57 -08:00
Anders Hejlsberg
3055445d27 Adding test 2015-12-10 13:54:58 -08:00
Nathan Shively-Sanders
ff0138878d Add tests from review 2015-12-10 13:47:31 -08:00
Nathan Shively-Sanders
cc1d8cf395 Address review comments 2015-12-10 13:47:18 -08:00
Wesley Wigham
591f96321c Add language service tests for this predicates 2015-12-10 13:25:26 -08:00
Sheetal Nandi
8948f9be50 Add support for modifying last encoded source map's source location
With this, we can just highlight the bindingElement when the temp variable
for it is assigned.
Note there are few scenarios like below which would still highlight let part
but thats because of how default value source mapping is currently which is next
in pipeline to support binding element with default values
for (let {name: nameA, skill: skillA } of robots) {
    console.log(nameA);
}
or
for (let [numberA2, nameA2, skillA2] of robots) {
    console.log(nameA2);
}
2015-12-10 12:29:14 -08:00
Anders Hejlsberg
9810ddf326 Include fresh type parameters in type parameter mapper function 2015-12-10 12:07:17 -08:00
Yui T
03c8d2f293 Rename parameter 2015-12-10 11:42:20 -08:00
Nathan Shively-Sanders
6ed5b59f75 Add test case and accept baseline 2015-12-10 11:05:25 -08:00
Nathan Shively-Sanders
6cd5a4dac9 Compare enums semi-structurally.
1. Unqualified names must match.
2. Target contains members with same names as all source members.
2015-12-10 11:03:45 -08:00
SaschaNaz
d8260b7059 whitespaces 2015-12-11 00:24:10 +09:00
SaschaNaz
f2cad8be40 getCurrentLeadingTrivia 2015-12-10 23:05:45 +09:00
SaschaNaz
54c00b0abe Merge remote-tracking branch 'refs/remotes/Microsoft/master' into formatWhitespaces 2015-12-10 22:50:35 +09:00
SaschaNaz
f5587151ba applying three feedbacks 2015-12-10 22:07:01 +09:00
Wesley Wigham
58400ed771 Merge pull request #5906 from weswigham/this-type-guards
This type predicates for type guards
2015-12-09 17:22:39 -08:00
Daniel Rosenwasser
6e06752c05 Merge pull request #5972 from reavowed/master
Limit error reporting for methods to the method name
2015-12-09 17:14:42 -08:00
Wesley Wigham
8e586943a1 accept baselines 2015-12-09 16:43:45 -08:00
Wesley Wigham
2885eb2047 Merge branch 'master' into this-type-guards 2015-12-09 16:34:42 -08:00
Zhengbo Li
e67574446a Fix too many watcher instances issue 2015-12-09 16:21:04 -08:00
Wesley Wigham
bc01b16057 reorder if 2015-12-09 16:06:21 -08:00
Wesley Wigham
82386564d4 destructuring applied 2015-12-09 15:58:57 -08:00
Wesley Wigham
028484664d most pr feedback 2015-12-09 15:53:39 -08:00
Daniel Rosenwasser
ecfeb21965 Merge pull request #6004 from Microsoft/IICEs
Fix code for immediately 'new'-ed/invoked class expressions
2015-12-09 14:15:38 -08:00
Sheetal Nandi
9fd525bc7c Simplify the array binding pattern element to determine what to highlight 2015-12-09 13:02:09 -08:00
Sheetal Nandi
250ddca65b Update existing baselines 2015-12-09 12:39:57 -08:00
Sheetal Nandi
bbfe6b5e94 Test case for sourcemap of "For of" that initializes vars using object literal binding pattern 2015-12-09 12:39:53 -08:00
Sheetal Nandi
35ec9caf65 Make sourcemap of "For" that initializes vars using object literal binding pattern better 2015-12-09 12:39:48 -08:00
Sheetal Nandi
67d2877718 Test case for "For" that initializes vars using object literal binding pattern 2015-12-09 12:39:44 -08:00
Sheetal Nandi
ac4b2bd795 Test case for "For" that initializes vars using array binding pattern 2015-12-09 12:39:40 -08:00
Sheetal Nandi
a99c9a00dc Test case for "For of" that initializes vars using array binding pattern 2015-12-09 12:39:35 -08:00
Sheetal Nandi
b1d395c4cf Make the destructuring array literal assignment better with sourcemap 2015-12-09 12:39:31 -08:00
Sheetal Nandi
6baa36b546 Test case for assignment expression with Array destructuring pattern 2015-12-09 12:39:27 -08:00
Sheetal Nandi
1da5b15c1a Test case for "For" statement with array binding pattern 2015-12-09 12:39:23 -08:00
Sheetal Nandi
24d0c98b51 Test case for "For" statement with object binding pattern 2015-12-09 12:39:18 -08:00
Sheetal Nandi
d8701c437c Test case for For Of statement with array binding pattern 2015-12-09 12:39:14 -08:00
Sheetal Nandi
edd55ddf51 Make the source map of "for of" destructuring - object binding pattern better 2015-12-09 12:39:09 -08:00
Sheetal Nandi
c0f9de6d2c Test case for ForOf statement with object binding pattern 2015-12-09 12:39:05 -08:00
Sheetal Nandi
6f896836b8 Test cases for nested array binding pattern destructuring in parameters 2015-12-09 12:39:01 -08:00
Sheetal Nandi
bdcdd67fb2 Test case for parameter array binding pattern 2015-12-09 12:38:56 -08:00
Sheetal Nandi
de7626356c Better the destructuring of nested array binding pattern 2015-12-09 12:38:52 -08:00
Sheetal Nandi
7945de4cd3 Test case for nested array binding pattern 2015-12-09 12:38:48 -08:00
Sheetal Nandi
7c618a494d Better the sourcemap for array binding pattern 2015-12-09 12:38:43 -08:00
Sheetal Nandi
0532e8cb11 Test cases for variable statement with array binding pattern 2015-12-09 12:38:39 -08:00
Sheetal Nandi
ad73ab2c16 Test cases for nested object binding pattern in parameter declaration 2015-12-09 12:38:35 -08:00
Sheetal Nandi
7acc51c7a7 Tests for parameter object binding pattern 2015-12-09 12:38:31 -08:00
Sheetal Nandi
8af2160922 Make nested object literal destructuring pattern better 2015-12-09 12:38:26 -08:00
Sheetal Nandi
b497cbc635 Test case for nested object binding pattern in variable statement 2015-12-09 12:38:22 -08:00
Sheetal Nandi
4ebf5695a7 Better sourcemaps for destructuring 2015-12-09 12:38:17 -08:00
Sheetal Nandi
e28272235c Test case for destructuring of variable statement 2015-12-09 12:38:13 -08:00