Commit Graph
26450 Commits
Author SHA1 Message Date
Wesley WighamandGitHub c12fc0d6c3 Format unique symmbol string output with unique symbol and not typeof within checker (#22247)
* Accept baseline update to symbol test

* Set default node flag instead of accepting new error
2018-02-28 17:55:56 -08:00
Anders Hejlsberg 69580c4561 Filter outer type parameters (similar to anonymous types) 2018-02-28 16:57:25 -08:00
Wesley WighamandGitHub ec249f7f67 Fix typo in inference (#22243) 2018-02-28 16:56:54 -08:00
Wesley WighamandGitHub b8e0009c9b Set syntheticLiteralTypeOrigin on synthetic undefined-type members (#22216)
* Have getNameOfSymbolAsWritten quote nonidentifier nonnumeric symbols all the time

* Revert checker changes

* Reuse synthetic origin to indicate that derived declaration name may need to be quoted
2018-02-28 16:03:05 -08:00
Wesley WighamandGitHub 1a43ad01a7 Lookup JSX namespace within factory function (#22207)
* Lookup JSX namespace within factory function

* Rename functions
2018-02-28 15:48:33 -08:00
Wesley WighamandGitHub 62185673fd Emit unqiue symbols with typeof if possible before issuing an error (#21403) 2018-02-28 15:44:12 -08:00
Wesley WighamandGitHub 7a31192ecb Stop binding type predicate types twice (#22210) 2018-02-28 15:43:13 -08:00
csigs 7adcd663f8 LEGO: check in for master to temporary branch. 2018-02-28 23:10:37 +00:00
Sheetal NandiandGitHub 005a50f587 Merge pull request #22136 from Microsoft/moduleResolution
Use cache for the non-relative module resolution and enhance the watches for failed lookup locations
2018-02-28 14:39:22 -08:00
Benjamin LichtmanandGitHub ca12cdcb5f Merge pull request #22138 from uniqueiniquity/conflictingDefinitionsError
Update category for TS4090 to Error
2018-02-28 14:22:41 -08:00
Anders Hejlsberg e5b568f9f4 Consistently propagate 'any' and 'never' types in type inference 2018-02-28 14:08:25 -08:00
AndyandGitHub fa4619c5c1 Add 'info' diagnostics (#22204)
* Add 'info' diagnostics

* Code review
2018-02-28 11:16:32 -08:00
csigs d6448b8a7e LEGO: check in for master to temporary branch. 2018-02-28 17:10:29 +00:00
Anders Hejlsberg 56e6deefc7 Distributive conditional type applied to 'never' produces 'never' 2018-02-28 06:39:17 -08:00
Markus Johnsson 627c95e3f5 Infer parameter names and types when applying Delcare Method codefix (#22180) 2018-02-28 08:55:07 +01:00
Anders Hejlsberg daf3ed8e22 Fix comment 2018-02-27 17:34:49 -08:00
Wesley WighamandGitHub c1128d6957 Fix declaration emitted crash on mapped type with no type (#22213) 2018-02-27 16:12:03 -08:00
Wesley WighamandGitHub dafa7321c6 Add semicolons to import helpers (#22212) 2018-02-27 16:11:33 -08:00
Nathan Shively-Sanders 125a317a9a Fix lint 2018-02-27 15:11:06 -08:00
csigs 20fe73bb66 LEGO: check in for master to temporary branch. 2018-02-27 23:10:46 +00:00
Anders Hejlsberg de3871a4fc Propagate 'never' and the wildcard type in type inference 2018-02-27 15:10:43 -08:00
Nathan Shively-Sanders c31808922d Remove assert for undeclared js-nested-exports
Previously, this would assert:

```ts
exports.undeclared.n = 1;
```

Because undeclared was never declared in any recognised way. Now it no
longer asserts, but does not bind. That's because the full pattern
starts with the line `exports = require('./x')` and assumes that x.js
declares `undeclared`. I am not sure how to bind this. The new test
contains this pattern in case I figure it out.
2018-02-27 15:04:10 -08:00
AndyandGitHub f4af74aae1 Simplify TextChanges#getChanges (#22157)
* Simplify TextChanges#getChanges

* Rename function and improve assert
2018-02-27 12:26:05 -08:00
Nathan Shively-Sanders c3143d2e47 Support js nested namespace decls on exports
and module.exports.
2018-02-27 10:20:16 -08:00
Wesley WighamandGitHub 32c63a2628 Add support for transpiling per-file jsx pragmas (#21218)
* Add support for per-file jsx pragmas

* Add error for using jsx factory pragma with fragments

* More tests, use different regex class for pragma capture

* Unify all pragma parsing machinery
2018-02-26 16:10:00 -08:00
AndyandGitHub 0b1e21794d fourslash diagnostics tests: use objects instead of strings (#22193) 2018-02-26 14:55:26 -08:00
Anders Hejlsberg b9e06bfd38 Merge branch 'master' into fixConditionalTypes
# Conflicts:
#	src/compiler/checker.ts
2018-02-26 14:50:23 -08:00
Anders Hejlsberg 6e672b7c9d Use '{}' instead of 'never' for no candidates in conditional inference 2018-02-26 14:26:15 -08:00
Sheetal Nandi c154b81986 Ensure our readonly emptyArray stays non modified. 2018-02-26 13:52:09 -08:00
Anders Hejlsberg c2e6f7aacc Disallow recursion 2018-02-26 13:48:40 -08:00
Wesley WighamandGitHub d15b098e70 Increase rwc js verification timeout (#22191)
* Increase js verification timeout

* Add seperator
2018-02-26 12:55:08 -08:00
Wesley WighamandGitHub 0dc5f18bdb Remove excess comment ranges from initialized and property parameter emit (#22152) 2018-02-26 12:43:31 -08:00
AndyandGitHub 95dfd271e2 Make some internal types @internal (#22190) 2018-02-26 12:37:45 -08:00
AndyandGitHub e4e4b17669 Improve error message for untyped import of scoped package (#22189) 2018-02-26 10:38:54 -08:00
Sheetal Nandi 23a7e2f840 Report errors about correctness of the json file 2018-02-24 09:46:29 -08:00
kingwland王文璐 eba4d36739 error if import empty object form module not existed 2018-02-24 18:43:02 +08:00
Andrew CaseyandGitHub b31aa4e012 Merge pull request #22087 from amcasey/AmbientModuleImports
Organize imports in ambient modules
2018-02-23 17:43:28 -08:00
Sheetal Nandi 4257c2fa04 Resolve the .json file only if module name contains the extension 2018-02-23 17:27:17 -08:00
Sheetal Nandi a790a92f7d Parse all json values at root 2018-02-23 14:00:30 -08:00
Sheetal Nandi ca590d6fed Need allowJs to be true to use the json module resolution 2018-02-23 14:00:23 -08:00
Sheetal Nandi a1922fd41f More tests and also do not add index signature for json module 2018-02-23 14:00:11 -08:00
Sheetal Nandi 00b6c32a10 Fix emit for json file 2018-02-23 13:59:58 -08:00
Sheetal Nandi 3572fad981 Bind and resolve the module for json file 2018-02-23 13:59:54 -08:00
Sheetal Nandi ee2e267d38 Replace usage of jsonObject on JsonSourceFile 2018-02-23 13:59:47 -08:00
Sheetal Nandi 5771adbbe7 Resolve Json file when module resolution strategy is node 2018-02-23 13:54:39 -08:00
Sheetal Nandi f1c879d090 Merge branch 'master' into watchOptions 2018-02-23 13:16:46 -08:00
Daniel RosenwasserandGitHub 4d284d617f Merge pull request #22098 from alexeagle/pretty
fix --pretty output when context is multi-line
2018-02-23 12:51:01 -08:00
Sheetal Nandi 08ab6eb42d Reload the text from file if there is pending reload of the script info before determining to use SVC
Fixes #20806
2018-02-23 12:10:24 -08:00
Sheetal Nandi 4d6b53bae5 Add test for scenario when script info being operated is pending on reload but has svc for the previous version
Test for #20806
2018-02-23 12:05:19 -08:00
Nathan Shively-Sanders aa6b76fb6f Merge branch 'master' into js-object-literal-assignments-as-declarations 2018-02-23 09:24:32 -08:00