11040 Commits

Author SHA1 Message Date
Anders Hejlsberg
25a72d6085 Removing unused functions 2016-03-04 15:51:22 -08:00
Matt McCutchen
49172207bf Expose ts.isExternalModule as public API.
Fixes #7359
2016-03-04 18:45:42 -05:00
Mohamed Hegazy
a5354608fc Merge pull request #7392 from Microsoft/declarationEmitFixes
Declaration emit fixes
2016-03-04 15:35:43 -08:00
Anders Hejlsberg
15b240548f Extract and lift nullability over best common supertype 2016-03-04 15:01:11 -08:00
Mohamed Hegazy
15640492c4 Code review comments 2016-03-04 14:21:31 -08:00
Anders Hejlsberg
d6fcd1af1b Consider for-in and for-of variables to be definitely assigned 2016-03-04 13:19:58 -08:00
Anders Hejlsberg
1302418776 Accepting new baselines 2016-03-04 10:43:10 -08:00
Anders Hejlsberg
c623e1f8c9 No widening of 'null' and 'undefined' types in --strictNullChecks mode 2016-03-04 10:42:23 -08:00
Mohamed Hegazy
15f07e6231 Fix #4506: Remove assert to allow for invalid patterns already flagged erlier by the checker 2016-03-03 23:01:46 -08:00
Mohamed Hegazy
3bb2c57264 Fix #3810: Handel expressions in extends clauses 2016-03-03 22:35:30 -08:00
Mohamed Hegazy
c98c763243 Fix #5651: Get the correct meaning for expressions in extends clauses 2016-03-03 21:47:11 -08:00
Anders Hejlsberg
87ae0489eb Reinstate separate type kinds for 'null' and 'undefined' 2016-03-03 17:44:46 -08:00
Ryan Cavanaugh
311f8dd7d3 Merge pull request #7309 from RyanCavanaugh/fix6878
Support JSDoc on class / obj. literal getters
2016-03-03 15:50:15 -08:00
Mohamed Hegazy
baa040115e Fix #7173: Widen the type do the defualt export expression before writing it out. 2016-03-03 15:42:47 -08:00
jramsay
fcfc411200 Merge pull request #7383 from Microsoft/removeCachePathFromDiscoverTypings
Removing cachePath from discoverTypings and DiscoverTypingsInfo.
2016-03-03 15:41:45 -08:00
Jason Ramsay
ae2b7c2aa2 Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Mohamed Hegazy
0cba37d5b2 Merge pull request #7358 from martine/empty-return
in noImplicitReturns mode, also disallow "return;"
2016-03-03 13:56:19 -08:00
Vladimir Matveev
744e51047e Merge pull request #7373 from Microsoft/limitInferenceDepth
set the maximum depth to explore during type inference
2016-03-03 12:18:49 -08:00
Evan Martin
5132ea64ea in noImplicitReturns mode, also disallow "return;"
In --noImplicitReturns mode, if a function specifies a return type,
disallow empty "return;" statements.

Fixes #5916.
2016-03-03 12:18:23 -08:00
Anders Hejlsberg
04c28b09a9 Accepting new baselines 2016-03-03 11:18:47 -08:00
Anders Hejlsberg
ed958119a1 Fix unit test 2016-03-03 11:18:33 -08:00
Anders Hejlsberg
ea4b13bdf9 Allow 'null' and 'undefined' as type names 2016-03-03 11:18:12 -08:00
Vladimir Matveev
1589e4f57e set the maximum depth to explore during type inference 2016-03-03 10:47:21 -08:00
Mohamed Hegazy
24c47f18ad Merge pull request #7371 from Microsoft/checkForWatchFile
Fix #7362: check for --watchFile in tsconfig.json as well as on the c…
2016-03-03 10:44:26 -08:00
Mohamed Hegazy
30a6a33259 Fix #7362: check for --watchFile in tsconfig.json as well as on the commandline 2016-03-03 10:18:33 -08:00
Tingan Ho
194927e51b Update with master 2016-03-03 13:58:20 +08:00
Tingan Ho
99edce09bc Fixes CR feedback 2016-03-03 13:29:00 +08:00
Kanchalai Tanglertsampan
70d267419b Concat declaration error so we report them 2016-03-02 17:13:51 -08:00
Anders Hejlsberg
33e3825beb Assigned-before-use checking for non-nullable variables 2016-03-02 16:40:16 -08:00
Mohamed Hegazy
0f6dbd0250 Merge pull request #7350 from basarat/patch-1
fix(build) `TypingResolutionHost` interface is used by exported function `discoverTypings`
2016-03-02 16:39:56 -08:00
Basarat Ali Syed
1bebc711b0 fix(build) TypingResolutionHost interface is used by exported function discoverTypings 2016-03-03 10:32:07 +11:00
Daniel Rosenwasser
d6c56062b6 Merge pull request #7348 from Vinatorul/issue6540
Added new diagnostics message to clarify error for type guards
2016-03-02 13:55:56 -08:00
Alexander
694a48c445 Added new diagnostics message to clarify error for type guards
New diagnostics message "A type guard's type must be assignable to its parameter's type." number 2677
is now using in chain report to clarify vague error message for type guards.
2016-03-03 00:24:02 +03:00
jramsay
de47fcc113 Merge pull request #7179 from Microsoft/jsTypingForAcquireDts
Salsa: JS support for discovering and acquiring d.ts files
2016-03-02 11:10:12 -08:00
Jason Ramsay
e8772bc0a2 - Adding new lines after { for single-line if statements
- Renaming DiscoverTypingsSettings to DiscoverTypingsInfo to match host
2016-03-02 10:11:13 -08:00
Vladimir Matveev
f34dcdd464 Merge pull request #7328 from Microsoft/flipSidesInSignatureCheck
flip sides source and target when we check signature relations
2016-03-01 19:28:19 -08:00
Jason Ramsay
4bbdf2a0bb - Removing filesToWatch from getTypingNamesFromNodeModuleFolder.
These modules are already installed and are not expected to change
2016-03-01 19:06:31 -08:00
Jason Ramsay
6aad783db8 - Adding DiscoverTypingsSettings
- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
2016-03-01 18:52:11 -08:00
Vladimir Matveev
b3552c69d7 Merge pull request #7329 from Microsoft/allowFallFromLastCase
allow fallthrough from the last case of the switch
2016-03-01 17:24:00 -08:00
zhengbli
1224013f77 Update the format span end position for formatOnEnter 2016-03-01 16:45:56 -08:00
Vladimir Matveev
568e2aab58 allow fallthrough from the last case of the switch 2016-03-01 15:58:59 -08:00
Vladimir Matveev
0ef2b9ea85 flip sides source and target when we check signature relations 2016-03-01 15:47:00 -08:00
Ryan Cavanaugh
65f09d66ad Don't crash 2016-03-01 15:09:15 -08:00
Ryan Cavanaugh
fe483a69ee Merge pull request #7326 from RyanCavanaugh/fix4577
Show aliases (e.g. imports) in JSX tag completion positions
2016-03-01 14:27:36 -08:00
Ryan Cavanaugh
6cdbc6cad0 Show aliases (e.g. imports) in JSX tag completion positions
Fixes #4577
2016-03-01 13:47:29 -08:00
Ryan Cavanaugh
1f9153f801 Update to push types through as well 2016-03-01 12:26:17 -08:00
Vladimir Matveev
1e2d4773a1 Merge pull request #7283 from Microsoft/noRedundantContinue
do not emit explicit 'continue' in converted loops
2016-03-01 12:15:03 -08:00
Jason Ramsay
b3ceea3b3d - replacing TryParseJson with existing readConfig
- push error for invalid enableAutoDiscovery option
- adding interfaces for jsons
- removing updateNotFoundTypings
- node_modules normalize file names before using
- adding safeListPath to discoverTypings
2016-03-01 11:50:27 -08:00
Bill Ticehurst
cb5e7f0f61 Merge pull request #7324 from Microsoft/port7310
Port issue 7310
2016-03-01 11:41:52 -08:00
Bill Ticehurst
cbd7336914 Changed how parserContextFlags are handled in tests
(cherry picked from commit b5da80202f41e6f293153a2df945063d584b022a)
2016-03-01 11:08:40 -08:00