Commit graph

10763 commits

Author SHA1 Message Date
Ivo Gabe de Wolff
4f936c468b Add control flow tests 2016-03-25 21:29:58 +01:00
Anders Hejlsberg
bf78470ed3 Fix overly aggressive optimization 2016-03-25 10:47:04 -07:00
Anders Hejlsberg
6d25a42fd9 Remove incorrect type predicate (could be true even when result is false) 2016-03-24 22:04:44 -07:00
Anders Hejlsberg
ed5002c81a Handle assignment of union types in getAssignmentReducedType 2016-03-24 22:03:53 -07:00
Anders Hejlsberg
33985b24b7 Adding a few optimizations 2016-03-24 06:50:01 -07:00
Anders Hejlsberg
80c2e5ead2 Accepting new baselines 2016-03-22 10:57:56 -07:00
Anders Hejlsberg
7c45c7ba9f Fixing tests 2016-03-22 10:50:06 -07:00
Anders Hejlsberg
afa1714c03 Add type annotations to suppress circularity errors 2016-03-22 10:22:08 -07:00
Anders Hejlsberg
e67d15a1ce Initial implementation of control flow based type analysis 2016-03-22 10:20:43 -07:00
Anders Hejlsberg
3853bb86d0 Merge pull request #7140 from Microsoft/strictNullChecks
Non-nullable types
2016-03-21 16:52:43 -07:00
Mohamed Hegazy
7c99c8f8df Merge pull request #7622 from Microsoft/findAllReferencesForJSXTagNames
Fix issue with find references for jsx tags
2016-03-21 16:28:31 -07:00
Anders Hejlsberg
fb6255a7e4 Accepting new baselines 2016-03-21 16:28:09 -07:00
Anders Hejlsberg
413d9a639f Merge branch 'master' into strictNullChecks
Conflicts:
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.symbols
	tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.symbols
2016-03-21 16:21:02 -07:00
Vladimir Matveev
4e06457b1d Merge pull request #7595 from Microsoft/revertParseCompilerOptionsFromJson
revert changes in the signature of 'convertCompilerOptionsFromJson'
2016-03-21 16:07:31 -07:00
Mohamed Hegazy
d5c3a0a52b Fix issue with find references for jsx tags 2016-03-21 15:40:14 -07:00
Vladimir Matveev
e052eb1cda Merge pull request #7621 from Microsoft/dropInferenceLimit
drop inference depth limit
2016-03-21 15:36:36 -07:00
Vladimir Matveev
134a253f57 added API sample to tests 2016-03-21 15:20:59 -07:00
Vladimir Matveev
cc8277c4db Merge pull request #7591 from Microsoft/allow-merge-for-types-namespaces
Allow aliases to be merged with exported types\namespaces
2016-03-21 15:16:10 -07:00
Vladimir Matveev
6f37d31e18 drop inference limit 2016-03-21 15:15:41 -07:00
Daniel Rosenwasser
8514d0d5eb Merge pull request #7604 from Microsoft/noPrimitiveUnionBreakdown
Avoid elaborating errors when relating primitives to union types of any form.
2016-03-21 10:49:09 -07:00
Daniel Rosenwasser
e9aeaa2f0d Accepted baselines. 2016-03-20 12:31:11 -07:00
Daniel Rosenwasser
323a195db9 Don't elaborate errors when trying to relate a primitive to a union. 2016-03-20 12:30:54 -07:00
Vladimir Matveev
497b4c341c revert changes in the signature of 'convertCompilerOptionsFromJson' 2016-03-19 20:59:32 -07:00
Vladimir Matveev
3691261db4 partially revert #7583 2016-03-18 22:26:52 -07:00
Vladimir Matveev
32178acdfe Merge pull request #7583 from Microsoft/colliding-local-import
check if import collides with exported local name
2016-03-18 12:21:51 -07:00
Vladimir Matveev
5ed389b6b4 check if import collides with exported local name 2016-03-18 10:29:01 -07:00
Vladimir Matveev
279fec7a7d Merge pull request #7567 from Microsoft/contextual-type-parameters
show completion in destructured parameter if containing function was contextually typed
2016-03-17 16:30:20 -07:00
Mohamed Hegazy
f0b3ff16e3 Merge pull request #7532 from Microsoft/declarationEmitFixes2
Remove members from getAccessibleSymbolChain walk
2016-03-17 15:50:27 -07:00
Vladimir Matveev
112e4b1e80 Addressed PR feedback 2016-03-17 14:40:05 -07:00
Vladimir Matveev
6cfa64daa3 show completion in destructured parameter if containing function was contextually typed 2016-03-17 11:37:52 -07:00
Vladimir Matveev
51e8f7dd7a Merge pull request #7555 from Microsoft/destructuring-variable-declarations
Destructuring in variable declarations when module kind is not ES6
2016-03-17 10:37:34 -07:00
Vladimir Matveev
223730dfb3 Merge pull request #7559 from Microsoft/rewrite-class-as-expr
emit top level classes as class expressions when target=ES6 and module=System
2016-03-17 10:37:11 -07:00
Vladimir Matveev
c9ef8be16c addressed PR feedback 2016-03-17 07:05:33 -07:00
Vladimir Matveev
57d9a5ada5 emit top level classes as class expressions when target=ES6 and module=System 2016-03-16 21:56:53 -07:00
Yui
b5f418ffcc Merge pull request #7522 from Microsoft/parseCompilerFlagsWithListOptions
Parsing compiler flags which takes options in form of list
2016-03-16 17:13:43 -07:00
Vladimir Matveev
6cf57b1bca fix comments 2016-03-16 16:42:23 -07:00
Vladimir Matveev
3ede567fbc use downlevel destructuring for exported variables for target=ES6 if module kind is not ES6 2016-03-16 16:40:35 -07:00
Kanchalai Tanglertsampan
9e2df0459e Address PR 2016-03-16 16:35:51 -07:00
Kanchalai Tanglertsampan
266a92b1f3 Address PR 2016-03-16 15:29:13 -07:00
Kanchalai Tanglertsampan
9a5542b1fd Remove unused error message 2016-03-16 14:21:20 -07:00
Kanchalai Tanglertsampan
120c6eba25 Remove trailing whitespace 2016-03-16 14:09:45 -07:00
Kanchalai Tanglertsampan
03bf75bf06 Remove unused error message 2016-03-16 14:09:02 -07:00
Kanchalai Tanglertsampan
f7a55fa5a2 Remove --lib 2016-03-16 14:08:49 -07:00
Kanchalai Tanglertsampan
92bee6a533 Unify error message for custom-type compiler option 2016-03-16 13:49:36 -07:00
Mohamed Hegazy
59f4687cab Update symbol baselines 2016-03-16 13:45:55 -07:00
Mohamed Hegazy
e0ab009a98 Remove members from getAccessibleSymbolChain walk 2016-03-16 13:45:38 -07:00
Kanchalai Tanglertsampan
4d915e59d9 Using ts.filter instead of just .filter 2016-03-15 17:04:18 -07:00
Kanchalai Tanglertsampan
95b43dac29 Handle default compiler-options and typing-options 2016-03-15 16:30:11 -07:00
Mohamed Hegazy
1156141b5e Merge pull request #7525 from chuckjaz/sourceFile_callback
Adding sourceFiles to the Program emit callback
2016-03-15 14:05:26 -07:00
Mohamed Hegazy
eef907abe5 Merge pull request #7524 from Microsoft/rwcRunnerFixes
RWC runner fixes for reading json files
2016-03-15 13:25:47 -07:00