Anders Hejlsberg
39c4e8ad1f
Remove unnecessary restrictions in property access narrowing
2016-06-03 17:30:49 -07:00
Anders Hejlsberg
3853555b49
Merge pull request #8944 from Microsoft/reviseWidening
...
No widening in strict null checking mode
2016-06-02 15:18:33 -07:00
Zhengbo Li
131f759c5c
Merge pull request #8930 from zhengbli/i8676
...
Run fixupParentReferences when parsing isolated jsDocComment
2016-06-02 14:15:14 -07:00
zhengbli
e2a1a78dd3
reuse the fixupParentReferences function
2016-06-02 13:26:15 -07:00
Nathan Shively-Sanders
fc3e040c51
Revert "Merge pull request #7235 from weswigham/narrow-all-types"
...
This reverts commit ef0f6c8fe4f94a7e294cfe42d7025c9dca6535d5, reversing
changes made to 9f087cb62ade7a879e23c229df752fc8f87d679c.
2016-06-02 12:57:24 -07:00
zhengbli
d41ac8aa9a
Add null check and CR feedback
2016-06-02 11:12:38 -07:00
Anders Hejlsberg
fb2df77a59
Remove unused variable
2016-06-02 10:47:47 -07:00
Nathan Shively-Sanders
ef0f6c8fe4
Merge pull request #7235 from weswigham/narrow-all-types
...
Fix #7224 , #7441 - Replace TypeFlags.Narrowable
2016-06-02 10:01:32 -07:00
Anders Hejlsberg
5f3f2d302f
Create separate control flows for property declarations with initializers
2016-06-02 06:47:37 -07:00
Anders Hejlsberg
2517238269
Add non-widening forms of null and undefined
2016-06-02 06:32:14 -07:00
zhengbli
0e96c5eaf1
Run fixupParentReferences when parsing isolated jsDocComment
2016-06-01 22:57:25 -07:00
Nathan Shively-Sanders
9a620bf616
Actually merge from master
2016-06-01 11:39:22 -07:00
Nathan Shively-Sanders
d111a0f733
Merge branch 'master' into narrow-all-types
2016-06-01 11:27:50 -07:00
zhengbli
eb0f035c78
Remove unused parameter
2016-05-31 16:08:12 -07:00
zhengbli
630517b8ad
Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
2016-05-31 15:30:42 -07:00
Anders Hejlsberg
4095602ce5
Merge pull request #8849 from Microsoft/outerControlFlows
...
Improve control flow analysis in function expressions
2016-05-31 14:51:39 -07:00
Anders Hejlsberg
41446fe4c2
Address CR feedback
2016-05-31 14:33:00 -07:00
zhengbli
241920c960
Merge branch 'outerControlFlows' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
...
# Conflicts:
# src/compiler/binder.ts
2016-05-31 14:02:45 -07:00
Zhengbo Li
5261467a32
Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
2016-05-31 10:39:23 -07:00
zhengbli
59b188d4ca
Add navigationTo test for jsdoc typedef
2016-05-31 02:05:26 -07:00
zhengbli
18ee4b0a1e
cr feedback
2016-05-30 22:11:43 -07:00
Anders Hejlsberg
5b4dffc2d7
More critical path optimization in binder
2016-05-29 16:04:34 -07:00
Anders Hejlsberg
66e9f7dc21
Optimize critical code paths in binder
2016-05-28 16:00:31 -07:00
Anders Hejlsberg
e8ecf0e615
Track return statements in IIFE using a flow label
2016-05-28 06:43:28 -07:00
Vladimir Matveev
92938cd8df
check that default clause is non-empty in reachability checks
2016-05-27 15:38:59 -07:00
Sheetal Nandi
35156527a3
Merge pull request #8789 from Microsoft/getSymbolAtAliasLocation
...
Do not resolve alias when getting symbol of import equal's right hand side
2016-05-27 09:27:23 -07:00
Anders Hejlsberg
1647d20d90
Fix linting errors
2016-05-26 16:50:36 -07:00
Nathan Shively-Sanders
154729d40e
Merge pull request #8770 from Microsoft/apparent-members-for-type-parameters-constrained-by-any
...
Apparent members for type parameters constrained by any
2016-05-26 16:26:28 -07:00
Anders Hejlsberg
3b5c72c4bc
Include outer function expressions in control flow analysis
2016-05-26 15:30:31 -07:00
zhengbli
e69976c4b7
Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
...
# Conflicts:
# src/services/utilities.ts
2016-05-26 14:50:09 -07:00
Mohamed Hegazy
b70d07954c
Merge pull request #8845 from Microsoft/Fix8834
...
Fix #8834 : exclude paramters and variables from flag checks
2016-05-26 14:35:50 -07:00
zhengbli
81ce532cde
Change how typedef tag is parsed
2016-05-26 14:33:30 -07:00
Mohamed Hegazy
04d6e9167f
Fix typos
2016-05-26 14:11:27 -07:00
Nathan Shively-Sanders
0a623f8a71
Merge pull request #8822 from Microsoft/excess-property-check-numeric-indexers
...
Excess property check numeric indexers
2016-05-26 13:39:29 -07:00
Nathan Shively-Sanders
6304d79536
Merge pull request #8844 from Microsoft/create-symbol-for-assignments-in-javascript-constructors
...
Symbol for property assignments in Salsa/ES6 constructors
2016-05-26 13:26:48 -07:00
Mohamed Hegazy
5e49b57fea
Fix #8834 : exclude paramters and variables from flag checks
2016-05-26 13:00:38 -07:00
Nathan Shively-Sanders
abfcdd2cfd
Symbol for property assignments in Salsa/ES6 constructors
...
Previously no symbol at all was created, meaning that Salsa didn't track
properties in ES6 code.
2016-05-26 12:42:35 -07:00
Mohamed Hegazy
8aa6a9dcd6
Merge pull request #8786 from rkirov/no_double_assignment
...
do not emit double assignment of class expressions.
2016-05-26 10:59:55 -07:00
Nathan Shively-Sanders
42c17e194e
Address PR comments
2016-05-25 17:03:33 -07:00
Mohamed Hegazy
cbbc0ca8de
Merge branch 'master' into Fix8795-1
2016-05-25 12:35:58 -07:00
Anders Hejlsberg
a431a0b60b
Improve intersection type inference
2016-05-25 11:16:33 -07:00
Nathan Shively-Sanders
41db405f4c
Merge branch 'master' into excess-property-check-numeric-indexers
2016-05-25 10:56:15 -07:00
Nathan Shively-Sanders
642d6d5407
Only allow excess numeric properties w/numeric indexers
...
Previously, having a numeric indexer on a target type meant that excess
object property checking would allow any property. Now only numeric
properties are allowed.
2016-05-25 10:12:16 -07:00
Ryan Cavanaugh
34e8560070
Fix broken baselines
2016-05-25 10:11:54 -07:00
zhengbli
5f9fa69587
Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
...
# Conflicts:
# src/services/services.ts
# tests/cases/unittests/jsDocParsing.ts
2016-05-24 21:06:00 -07:00
Mohamed Hegazy
7cb2db7f9e
Fix #8795 : make properties defined in optional constructor paramters optional
2016-05-24 20:09:15 -07:00
Rado Kirov
699dc4f9bb
do not emit double assigment of class expressions.
...
Closure compiler ES6 support rejects expressions of the form `let A = B
= class {}`
With a small rewriting of the emitted code the case of decorated and
staticly referenced classes, TypeScript ES6 emit satisfies this
requirement.
Before:
let C_1;
let C = C_1 = class C {};
After:
let C_1 = class C {};
let C_1 = C;
2016-05-24 16:26:01 -07:00
Ryan Cavanaugh
7173fa8d02
Merge pull request #8670 from RyanCavanaugh/fix8275
...
Automatically consume @types/ folders
2016-05-24 15:23:06 -07:00
Ryan Cavanaugh
3dde13484f
Merge pull request #8696 from RyanCavanaugh/fix8675
...
Allow duplicate identifiers across declarations.
2016-05-24 15:22:57 -07:00
Nathan Shively-Sanders
1ee9cb026d
Merge pull request #8792 from Microsoft/instantiate-this-in-super-property-access
...
Instantiate this-type in super property access
2016-05-24 15:07:45 -07:00