Commit Graph

32750 Commits

Author SHA1 Message Date
Andrew Branch 707e977056 Ensure formatter can always get a newline character (#38579)
* Ensure formatter can always get a newline character

* Make FormatContext.host optional since it’s not necessary if format options are all applied

* Make FormattingHost required again
2020-05-19 13:14:32 -07:00
Tim van der Lippe 77075df2d7 Fix debug command for Node debugging
If you would run with `--inspect=true`, the following error would be thrown:

[12:08:13] > node --inspect-brk=true TypeScript/node_modules/mocha/bin/_mocha -R scripts/failed-tests -O "reporter=mocha-fivemat-progress-reporter" -g "implementsJSDocReferencesDeclarationEmit" --colors -t 0 built/local/run.js
Unable to resolve "true": unknown node or service
2020-05-19 12:11:29 +01:00
Tim van der Lippe e72e01d9ff Remove mentions of runtests-browser in CONTRIBUTING.md
The gulp tasks were removed in #30054, but the contributing
guidelines weren't updated accordingly.
2020-05-19 12:06:09 +01:00
csigs 611dd22b9a LEGO: Merge pull request 38655
LEGO: Merge pull request 38655
2020-05-18 21:11:16 -07:00
csigs 90b772a751 LEGO: check in for master to temporary branch. 2020-05-19 04:10:35 +00:00
csigs 6ba8c2725b LEGO: Merge pull request 38650
LEGO: Merge pull request 38650
2020-05-18 15:11:15 -07:00
csigs 92dc5b8754 LEGO: check in for master to temporary branch. 2020-05-18 22:10:33 +00:00
csigs 160d201fe6 LEGO: Merge pull request 38639
LEGO: Merge pull request 38639
2020-05-18 09:11:35 -07:00
csigs 48d6e8dee5 LEGO: check in for master to temporary branch. 2020-05-18 16:10:40 +00:00
Alexander T 2b703d254a fix(33233): add outlining for comments before property access expression 2020-05-18 15:26:46 +03:00
csigs b58c9f4f8e LEGO: Merge pull request 38633
LEGO: Merge pull request 38633
2020-05-18 03:11:09 -07:00
csigs 437d68d64b LEGO: check in for master to temporary branch. 2020-05-18 10:10:25 +00:00
Anders Hejlsberg 3c1f37e913 Use control flow analysis to check 'super(...)' call before 'this' access (#38612)
* Use CFA graph to check this/super accesses are preceded by super() call

* Accept cleaned-up API baselines

* Accept new baselines

* Add tests
2020-05-16 19:58:17 -07:00
csigs bc0d2ec26c LEGO: Merge pull request 38614
LEGO: Merge pull request 38614
2020-05-16 15:11:35 -07:00
csigs d154b58406 LEGO: check in for master to temporary branch. 2020-05-16 22:10:40 +00:00
kingwl 6f393e9196 accept new baseline 2020-05-16 08:16:45 +08:00
kingwl acc167dfc4 fix rebase conflict 2020-05-16 08:13:12 +08:00
kingwl 39ae072a1c add missing semi 2020-05-16 08:10:51 +08:00
kingwl f78a408ab5 Add more check 2020-05-16 08:10:51 +08:00
kingwl c0c60015c4 fix mission baseline 2020-05-16 08:09:46 +08:00
kingwl 11bed4456b avoid shouldCaptureInTempVariable 2020-05-16 08:09:46 +08:00
Daniel Rosenwasser 9681c1611c Remove newline 2020-05-16 08:09:46 +08:00
kingwl be708bbb0a fix assignment check of logical assignment 2020-05-16 08:09:45 +08:00
kingwl d2be8900dc Add type narrow 2020-05-16 08:09:45 +08:00
kingwl 67a4943e1f Add more case 2020-05-16 08:09:43 +08:00
kingwl 81ce254a73 Refactor logical assignment 2020-05-16 08:09:42 +08:00
kingwl cb2e71cdb9 fix operator 2020-05-16 08:09:41 +08:00
kingwl fafb82b01a make ci happy 2020-05-16 08:09:41 +08:00
kingwl ff4fca527d Fix cfa 2020-05-16 08:09:40 +08:00
Wenlu Wang 944bcf8459 Update src/compiler/transformers/utilities.ts
Co-Authored-By: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-05-16 08:09:39 +08:00
kingwl ede6214157 Add more check 2020-05-16 08:09:39 +08:00
kingwl 82fe658a48 Add cfa 2020-05-16 08:09:38 +08:00
kingwl 9190a2c4e8 Add contextual types infer 2020-05-16 08:09:38 +08:00
kingwl f922427196 Add mission semi 2020-05-16 08:09:37 +08:00
kingwl da16b3e30b Add more case 2020-05-16 08:09:36 +08:00
kingwl 1d93db81cc Add logical assignment operator 2020-05-16 08:09:32 +08:00
Eli Barzilay 33c3e9e2c6 Make processTaggedTemplateExpression visit a returned node
This problem was introduced in 70399e146e (from PR #23801), which added
a `visitTaggedTemplateExpression` case for `TaggedTemplateExpression`,
before that, it would fallback to the default of `visitNode`.  So re-add
that happen in `processTaggedTemplateExpression`.

Since it doesn't hurt, I left a `Debug.checkDefined(property.name)`
instead of `!`-ing it.

Fixes #38558.
2020-05-15 19:46:45 -04:00
Eli Barzilay d7dd06e36d goToDefinition: find only the value if it's the RHS of an assignment 2020-05-15 18:55:57 -04:00
Jesse Trinity 1a15717bc4 Fix regression organize imports duplicates comments (#38599)
* delete import comments on organize imports

* add unit test

* accept new baseline

* respond to review comment
2020-05-15 14:25:11 -07:00
Ron Buckton 1cbe7ef000 Fix crash in JS declaration emit (#38508)
* Fix crash in JS decl emit

* Emit as class with private ctor
2020-05-15 14:00:59 -07:00
Wesley Wigham 7fc456f2d7 Include unknown in spread prop override check (#38577) 2020-05-14 14:36:38 -07:00
Daniel Rosenwasser 89f7797f7e Merge pull request #38576 from wincent/typos
Fix (cosmetic) typos in checker.ts comments
2020-05-14 12:30:59 -07:00
Greg Hurrell cfc4573c82 Fix (cosmetic) typos in checker.ts comments
Just some small things I noticed while looking at some recent PRs.
2020-05-14 19:40:41 +02:00
Anders Hejlsberg c1f676dd3f Perform intersection reduction before and after getApparentType (#38565)
* Perform intersection reduction before and after getApparentType

* Add regression tests
2020-05-13 20:57:17 -07:00
Alexander T 71711257ea fix(33836): allow readonly modifier for a field with only get accessor (#36543) 2020-05-13 13:28:32 -07:00
Wenlu Wang 9725d623ce Fix build type error (#38525) 2020-05-13 07:44:49 -04:00
Nathan Shively-Sanders 5ef22280a0 Merge pull request #38480 from typescript-bot/user-baseline-updates
🤖 User test baselines have changed for refs/heads/master
2020-05-12 14:10:29 -07:00
typescript-bot c44759a553 Update user baselines 2020-05-12 20:21:01 +00:00
Daniel Rosenwasser b682ee1a8a Merge pull request #38489 from microsoft/removeDuplicateInfo
Remove duplicate JSDoc comments
2020-05-12 12:52:15 -07:00
Daniel Rosenwasser c2b559403d Merge pull request #38502 from alan-agius4/export-star-colon
fix: add missing semi-colon to `__exportStar` unnamed function
2020-05-12 10:59:03 -07:00