Commit Graph
7169 Commits
Author SHA1 Message Date
Ryan Cavanaugh 023e375835 Properly handle multiply-declared optional properties in JSX attr. type
Fixes #6029
2015-12-14 16:44:26 -08:00
Yui T 07c6fe6280 Merge branch 'master' into fix5953_crashJSX 2015-12-14 15:04:31 -08:00
Yui T c0ff7f77a2 Fix build error 2015-12-14 14:35:27 -08:00
Yui T c5df5d768e Fix linting issue 2015-12-14 12:57:02 -08:00
Ryan Cavanaugh 2f447ee005 Merge pull request #5876 from RyanCavanaugh/javaScriptPrototypes
JavaScript prototype class inference
2015-12-14 11:42:18 -08:00
Ryan Cavanaugh 37f3ff8d05 Check for function flag on class symbol 2015-12-14 11:32:06 -08:00
Yui T 7e71686b1a Fix broken tests 2015-12-14 10:14:35 -08:00
Guy Bedford f0a8bf566c add __moduleName to System.register 2015-12-14 18:01:55 +02:00
Anders Hejlsberg e354aec8a3 Mark anonymous type as resolved before resolving call signatures 2015-12-13 18:25:45 -08:00
vladima b65c5779a2 addressed PR feedback 2015-12-12 23:07:18 -08:00
Yui T f138953d88 Fix comment 2015-12-12 16:13:30 -08:00
Anders Hejlsberg b44f6e47d6 Simplify deferred checking of function, class, and accessor bodies. 2015-12-12 15:56:43 -08:00
Yui T d4ea6a0289 Merge branch 'master' into fix4686_fixrename 2015-12-12 15:53:16 -08:00
Yui T 94c3d27f41 Fix linting 2015-12-12 15:53:04 -08:00
Anders Hejlsberg 87036fe9f7 Merge pull request #6058 from Microsoft/delayAccessorBodyCheck
Defer checks of accessor bodies in object literals
2015-12-12 15:45:05 -08:00
Yui T 0f3eb0a058 Initial fix for rename for parameter property declaration 2015-12-11 19:27:24 -08:00
vladima 60e1f30182 allow usage of 'super' in object literal expressions 2015-12-11 17:16:28 -08:00
Paul van Brenk 9d1cc31144 Merge pull request #6074 from Microsoft/supportChakra
make ChakraHost more generally usefull
2015-12-11 16:55:39 -08:00
Paul van Brenk 27493736c3 trailing whitespace 2015-12-11 16:32:44 -08:00
Paul van Brenk 0c365daac5 make ChakraHost more generally usefull 2015-12-11 16:19:08 -08:00
Wesley Wigham 5ee0957974 Merge pull request #6044 from weswigham/redeclared-export-type
Exempt one type declaration from the redeclared export check - Fix #6043
2015-12-11 16:15:22 -08:00
Daniel Rosenwasser 73526cf39a Do some caching so that we don't repeat the same work for the implementation signature for every overload. 2015-12-11 16:01:56 -08:00
Daniel Rosenwasser a236461358 Reversed order of checks, since the implementation will typically be more general than the overload. 2015-12-11 15:10:50 -08:00
Daniel Rosenwasser 9b507b7512 Specifically test for 'void' to permit implementations to return more than what was guaranteed. 2015-12-11 15:08:30 -08:00
Daniel Rosenwasser fc170da0e4 Merge branch 'master' into overloadCompatibility 2015-12-11 13:51:50 -08:00
Vladimir Matveev f51de5b28f Merge pull request #5860 from Microsoft/superPropertiesInES6
do not error on 'super' property access in ES6
2015-12-11 13:20:20 -08:00
Anders Hejlsberg 18e23a1b90 Addressing CR feedback 2015-12-11 10:52:04 -08:00
Nathan Shively-Sanders dc9d307f13 Fix lint 2015-12-11 10:08:01 -08:00
Nathan Shively-Sanders 8202576ab2 Filter for enum members only. 2015-12-11 09:56:13 -08:00
Zhengbo Li 564c4af59b Rollback to polling file watching 2015-12-10 23:27:07 -08:00
Wesley Wigham ef6c137f9e add feedback from PR 2015-12-10 19:55:08 -08:00
Yui T 9e6c196c36 Remove includeGlobalSymbol boolean 2015-12-10 18:09:02 -08:00
Zhengbo Li 36cc0e017b fix linter errors 2015-12-10 17:59:07 -08:00
Zhengbo Li 5fa7bec226 revert back to polling watching for approaching release 2015-12-10 17:54:03 -08:00
Anders Hejlsberg ff784770be Merge pull request #5949 from Microsoft/typeParametersAsConstraints
Type parameters as constraints
2015-12-10 16:53:59 -08:00
Anders Hejlsberg 7fe811e6b2 Defer checks of accessor bodies in object literals 2015-12-10 16:02:46 -08:00
Sheetal Nandi df3a74b6ca Removed some unnecessary changes and added comments 2015-12-10 15:35:47 -08:00
Nathan Shively-Sanders da8e19e191 Use typeof enum to resolve members.
Use getTypeOfSymbol >> resolveStructuredTypeMembers >> properties instead
of looking at declarations.
2015-12-10 15:25:01 -08:00
Sheetal Nandi 513e1f5fce If the destructuring assignment is synthetic use the left side as source map
This helps in scenarios like below where the assignment is created synthetically
for ({a} of {a: string}) {
}
2015-12-10 15:03:10 -08:00
Nathan Shively-Sanders a995b23e4a Handle merged enums 2015-12-10 14:28:29 -08:00
Sheetal Nandi 7d60c5e630 Fix the temporary assignment source maps in a better way
This doesnt create synthetic nodes with source map node on them
And makes us determine what to put source map on for temporary assignments
2015-12-10 14:10:34 -08:00
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
Nathan Shively-Sanders cc1d8cf395 Address review comments 2015-12-10 13:47:18 -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 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