Commit graph

29079 commits

Author SHA1 Message Date
csigs 161e64fe25 LEGO: check in for master to temporary branch. 2019-10-03 22:10:21 +00:00
Andrew Branch acf7aeee80
Add template .vscode/* settings, ignore real ones (#33758)
* Add LKG as typescript.tsdk

* Add template settings, ignore real ones

* Add note to CONTRIBUTING.md
2019-10-03 12:27:06 -05:00
csigs 903a6c9918
LEGO: Merge pull request 33789
LEGO: Merge pull request 33789
2019-10-03 09:10:49 -07:00
csigs 9d04313e11 LEGO: check in for master to temporary branch. 2019-10-03 16:10:22 +00:00
csigs 54aab85460
LEGO: Merge pull request 33782
LEGO: Merge pull request 33782
2019-10-03 03:10:49 -07:00
csigs 8cfb38e2ed LEGO: check in for master to temporary branch. 2019-10-03 10:10:20 +00:00
csigs 98458f29c3
LEGO: Merge pull request 33776
LEGO: Merge pull request 33776
2019-10-02 21:10:51 -07:00
csigs 32d08c9cf4 LEGO: check in for master to temporary branch. 2019-10-03 04:10:22 +00:00
TypeScript Bot dd62000536 Update user baselines (#33773) 2019-10-02 17:15:30 -07:00
TypeScript Bot f23add7704 Update user baselines (#33772) 2019-10-02 17:07:04 -07:00
Ron Buckton c774762723
Fix crash in transformations (#33768) 2019-10-02 16:13:32 -07:00
Wesley Wigham 58854a6182
Revert old lkg and re lkg (#33769)
* Revert "Update LKG (#33710)"

This reverts commit 29becf0501.

* Re-accept LKG with API with breaking typeArguments change removed
2019-10-02 16:01:59 -07:00
Wesley Wigham a8bea77d1e
Backfill TypeReference.typeArguments in the API (#33714) 2019-10-02 14:50:12 -07:00
TypeScript Bot 08aaf6aae8 Update user baselines (#33740) 2019-10-02 13:39:22 -07:00
csigs eb037f5641
LEGO: Merge pull request 33759
LEGO: Merge pull request 33759
2019-10-02 09:10:48 -07:00
csigs 8c96949819 LEGO: check in for master to temporary branch. 2019-10-02 16:10:21 +00:00
csigs 6b881ee923
LEGO: Merge pull request 33745
LEGO: Merge pull request 33745
2019-10-02 03:10:51 -07:00
csigs e196b6698e LEGO: check in for master to temporary branch. 2019-10-02 10:10:20 +00:00
Daniel Rosenwasser a3a55cab2c
Improve error message when reserved word is used as identifier (#33702)
Improve error message when reserved word is used as identifier
2019-10-01 16:20:28 -04:00
Ron Buckton 29becf0501
Update LKG (#33710) 2019-10-01 13:17:17 -07:00
Wesley Wigham 410ff90c54
Fix the third crash in the chrome user suite test by remembering to pass excludeThisKeyword (#33711) 2019-10-01 13:14:23 -07:00
Daniel Rosenwasser 20f42f45ff
Merge pull request #33709 from microsoft/moveMessageNumbers
Move error codes to appropriate section
2019-10-01 15:37:23 -04:00
Ron Buckton 526ed5284e
Ensure prepend texts are set when skipping internals (#33694) 2019-10-01 12:33:17 -07:00
Daniel Rosenwasser e4d77f8857 Update baselines. 2019-10-01 12:30:37 -07:00
Daniel Rosenwasser 933065b69c Change error codes. 2019-10-01 12:18:01 -07:00
Daniel Rosenwasser a04f1eb7f0
Better error message for mistaken import (#33706)
Better error message for mistaken import
2019-10-01 15:12:29 -04:00
Ryan Cavanaugh 6b63c1bc5c
Rename this function so it stops shadowing a local we use elsewhere (#33692) 2019-10-01 10:37:53 -07:00
Mukesh Prasad 03a3589225 Better error message for mistaken import (#40)
Issue number of the reported bug or feature request: microsoft#13601
2019-10-01 17:27:38 +01:00
csigs 8292af182c
LEGO: Merge pull request 33705
LEGO: Merge pull request 33705
2019-10-01 09:10:57 -07:00
csigs 453007d71e LEGO: check in for master to temporary branch. 2019-10-01 16:10:23 +00:00
Sheetal Nandi 2d96a163d1
Merge pull request #33681 from microsoft/autoTypeReference
Fix issue when types installed after watch/editor is opened for auto type reference that is for global types not being detected
2019-10-01 08:28:08 -07:00
Sergey Tychinin ab879939df Improve error message when reserved word is used as identifier
Signed-off-by: Sergey Tychinin <stychinin@bloomberg.net>
2019-10-01 10:48:17 -04:00
Andrew Branch 7be7cba050 Fixes binding well known symbol assignment via element access (#33687)
* Fix binding well-known symbols by element access

* Add navigationBar test

* Revert settings.json change

* Accept baselines

* Actually make it bind

* Accept API baselines

* Dont use internal name in API
2019-09-30 16:14:07 -07:00
Wenlu Wang 7c50bccec2 nullish coalescing commit (#32883)
* migrate nullish coalescing commit

* add more test case

* add branch type check test

* add more tests

* fix nullish precedence

* update public api

* add rescan question question token to fix regression

* update public api baseline

* Added tests that emit for nullish coalescing operator conforming with grammar restrictions when assertions are used.

* Fixed emit to hoist temporary variables (they previously went undeclared).
Added tests to ensure calls and property accesses are only called once.

* use not equal to null

* rename factory

* add grammar check

* fix more cases

* Fix handling of nullish coalescing oprator in expando objects.

* Fixed classifier to support ?? operator.

* update baseline

* accept baseline

* fix review

* update emitter and more testcase

* update control flow

* make linter happy

* update libs

* avoid unnecessary assert

* fix typooo

* Fixes for control-flow analysis
2019-09-30 15:33:50 -07:00
Michael Tamm 6bd3b21f6c fix (lib): Loosen predicate return types of typed arrays, adapt docs (#31343)
fixes #31472
2019-09-30 15:26:39 -07:00
Wesley Wigham 9a7fdade07
Fix crash in contextual typing of defaulted element access declarations (#33686) 2019-09-30 14:42:55 -07:00
Wesley Wigham 98cf317005
Add error message for set accessor vsibility issues (#33683) 2019-09-30 13:12:40 -07:00
Andrew Branch f89de95955
Allow special element access assignments to create declarations (#33537)
* Start enabling element access special assignment

* Treat element access assignment as special assignment in JS

* Make declarations for bindable element access expressions

* Fix navigationBar crash

* Add multi-level test for JS

* Propagate element access expressions to more code paths

* Fix property access on `this`

* Add quick info test

* Uhhh I guess this is fine

* Fix module["exports"] and property access chained off element access

* Add test for this property assignment

* Add test for and fix prototype property assignment

* Fix teeeest???

* Update APIs

* Fix element access declarations on `this`

* Fix go-to-definition

* Add declaration emit to tests

* Reconcile with late-bound symbol element access assignment

* Fix baselines

* Add JS declaration back to tests

* Fix JS declaration emit of non-late-bound string literal property names

* Revert accidental auto-format

* Use `isAccessExpression`

* Add underscore escaping member to test

* Fix and test navBar changes
2019-09-30 15:08:44 -05:00
Orta 053388d6d2
Merge pull request #33584 from orta/small_ts
Creates a smaller build of TypeScript which just has the language services
2019-09-30 15:52:57 -04:00
Ron Buckton fcd9334f57
Add support for Optional Chaining (#33294)
* Add support for Optional Chaining

* Add grammar error for invalid tagged template, more tests

* Prototype

* PR feedback

* Add errors for invalid assignments and a trailing '?.'

* Add additional signature help test, fix lint warnings

* Fix to insert text for completions

* Add initial control-flow analysis for optional chains

* PR Feedback and more tests

* Update to control flow

* Remove mangled smart quotes in comments

* Fix lint, PR feedback

* Updates to control flow

* Switch to FlowCondition for CFA of optional chains

* Fix ?. insertion for completions on type variables

* Accept API baseline change

* Clean up types

* improve control-flow debug output

* Revert Debug.formatControlFlowGraph helper
2019-09-30 12:33:28 -07:00
Anders Hejlsberg 7ce793c5b8
Merge pull request #33678 from microsoft/fix33617
Property handle recursive type references in type inference
2019-09-30 11:15:27 -07:00
Wesley Wigham 7f3c03d441
Implement declaration emit for accessors in the js declaration emitter (#33649)
* Implement declaration emit for accessors in the js declaration emitter

* Use `or`
2019-09-30 11:09:35 -07:00
Anders Hejlsberg ff5d38a94b
Merge pull request #33622 from microsoft/fix33580
Error when assertion function calls aren't CFA'd
2019-09-30 10:57:26 -07:00
Sheetal Nandi 1a614a27d1 Fix issue when types installed after watch/editor is opened for auto type reference that is for global types not being detected
Fixes #32285
2019-09-30 09:58:33 -07:00
Anders Hejlsberg 2a4d267af8 Accept new baselines 2019-09-30 09:28:26 -07:00
Anders Hejlsberg 46bddedb4b Add regression tests 2019-09-30 09:28:19 -07:00
Anders Hejlsberg ed497c4149 Properly handle recursive type references in type inference 2019-09-30 08:54:02 -07:00
Orta Therox 4c4a683d03 Merge branch 'small_ts' of https://github.com/orta/TypeScript into small_ts 2019-09-30 08:41:56 -04:00
Orta Therox c64af5e505 Remove the post-publish script 2019-09-30 08:29:16 -04:00
Anders Hejlsberg e5af71e3cd Accept new baselines 2019-09-27 15:23:57 -07:00