Commit Graph

4752 Commits

Author SHA1 Message Date
Daniel Rosenwasser 403a93d21f Merge pull request #6330 from weswigham/restorative-narrowing
Fix #6277
2016-01-14 16:07:59 -08:00
Daniel Rosenwasser 1868caa066 Merge pull request #6469 from ShyykoSerhiy/fix-528
Fixes issue https://github.com/Microsoft/TypeScript/issues/528 (Show better error message for unresolved references due to missing prefix)
2016-01-14 13:13:07 -08:00
Zhengbo Li d5d7a2a2dc Merge pull request #6026 from zhengbli/i6016
Fix too many watcher instances issue
2016-01-14 11:28:44 -08:00
Zhengbo Li dbfe862dbd not casting relative filenames in 'tsc watch' to Path 2016-01-14 00:34:43 -08:00
Mohamed Hegazy 31d85155b9 Merge branch 'master' into fixFindReferencesOnExports 2016-01-13 15:35:03 -08:00
shyyko.serhiy@gmail.com 21baedfeba changed messages text in checkAndReportErrorForMissingPrefix 2016-01-14 01:14:33 +02:00
pcbro 2294ef8891 Update utilities.ts 2016-01-13 23:43:41 +01:00
Zhengbo Li 067573b0c3 cr feedback: simplify the removeFile function 2016-01-13 14:03:18 -08:00
shyyko.serhiy@gmail.com 05b1dffc88 changed name of checkForMissingPrefix to checkAndReportErrorForMissingPrefix 2016-01-14 00:01:59 +02:00
Zhengbo Li 02531af991 Update the watchedFileSet to use Path instead of string for file names 2016-01-13 13:18:28 -08:00
shyyko.serhiy@gmail.com 6b7b9aaa56 added check for missing prefix 2016-01-13 20:20:34 +02:00
shyyko.serhiy@gmail.com 5ba47eca86 added two new more specific messages 2016-01-13 20:18:51 +02:00
Nathan Shively-Sanders 911d07a81b Merge pull request #5992 from Microsoft/allow-type-predicates-as-return-types-only
Allow type predicates as return types only
2016-01-13 09:55:40 -08:00
Nathan Shively-Sanders a9f2cb6d6e Make parseTypeOrTypePredicate terser. 2016-01-13 09:31:06 -08:00
Ryan Cavanaugh 5f024a3c9f Merge pull request #6358 from RyanCavanaugh/fix6349
Change logic in identifying JSX React SFCs
2016-01-12 15:40:52 -08:00
Zhengbo Li d22626f32d Fix lint issue 2016-01-12 00:17:38 -08:00
Vladimir Matveev 33bfd92f48 Merge pull request #6444 from Microsoft/errorOnReexportingGlobals
report errors when re-exporting globals
2016-01-11 15:47:17 -08:00
Vladimir Matveev b811b9f94b report errors when re-exporting globals 2016-01-11 14:48:57 -08:00
Mohamed Hegazy 869b81162f Merge pull request #6019 from Microsoft/sourceMapDestructuring
Fixes for source map of destructuring downlevel syntax
2016-01-11 14:36:28 -08:00
zhengbli 114d2bd66d Separate directory watching and file watching again to reduce logic complexity, because reference counting is a lot easier in this case 2016-01-11 11:35:46 -08:00
Yui T 81f760c406 Merge branch 'master' into fix5953_crashJSX 2016-01-10 05:46:54 -08:00
Anders Hejlsberg 0bfc83bbbc Merge pull request #6379 from Microsoft/forInChecking
Improved checking of for-in statements
2016-01-08 13:45:26 -08:00
Zhengbo Li 697644c583 spell our dir to directory 2016-01-07 22:48:17 -08:00
Mohamed Hegazy ec70105c9d Add check for reactNamespace value 2016-01-07 15:00:50 -08:00
Mohamed Hegazy 9b92697a61 Add new helper to check for valid identifiers 2016-01-07 14:56:05 -08:00
Mohamed Hegazy cc1947b94f Rename jsxNamespace to reactNamespace 2016-01-07 13:59:25 -08:00
Mohamed Hegazy c0b28a3a40 Merge branch 'react-factory-option' of https://github.com/rwyborn/TypeScript into rwyborn-react-factory-option
Conflicts:
	src/compiler/checker.ts
2016-01-07 13:50:03 -08:00
Mohamed Hegazy cefb741d9d Merge branch 'master' into fixFindReferencesOnExports 2016-01-07 13:31:22 -08:00
Anders Hejlsberg 3344a42686 Check for numeric index signature instead of array-like type
Better error message when object with numeric index signature is indexed with a string
2016-01-07 10:34:22 -08:00
Anders Hejlsberg 537fb4a7c5 Merge branch 'master' into forInChecking 2016-01-06 17:42:14 -08:00
Anders Hejlsberg 120569afb0 Support for-in both with and without variable declaration 2016-01-06 16:12:49 -08:00
Ryan Cavanaugh cf8daffea1 Properly cache JSX element types for SFC expressions 2016-01-06 13:21:03 -08:00
Vladimir Matveev 36af815bba add optional 'directoryExists' method to hosts to reduce amount of disk probings that are known to fail 2016-01-06 12:37:52 -08:00
Nathan Shively-Sanders 9b13a0c5b9 Better name for checkTypePredicate helper function
checkBindingPatternForTypeVariable ->
checkIfTypeVariableIsDeclaredInBindingPattern
2016-01-06 10:58:57 -08:00
Anders Hejlsberg a05b1de7ee Change for-in iteration variable type from any to string 2016-01-06 10:52:05 -08:00
Mohamed Hegazy 7d31b5c8a3 Fix find all refs in shorthand properties for imports and exports 2016-01-06 10:27:31 -08:00
Vladimir Matveev ba0f7f52ab Merge pull request #6362 from Microsoft/Revert6098
Revert "Merge pull request #6098 from guybedford/master"
2016-01-05 10:56:24 -08:00
Vladimir Matveev dbe8489087 Revert "Merge pull request #6098 from guybedford/master"
This reverts commit 996f16940e, reversing
changes made to 51fd41b0c7.
2016-01-05 10:40:24 -08:00
Ryan Cavanaugh aed73bd139 Merge pull request #6291 from RyanCavanaugh/fix6280
Issue correct errors for missing JSX closing tags
2016-01-05 10:23:49 -08:00
Ryan Cavanaugh 53106cb5ed Change logic in identifying SFCs
Our logic for detecting SFC vs Element Class had a few issues:
 * Object Type flag is not actually useful
 * Parameter arity isn't actually relevant
 * The check for Element Class should take priority

Fixes #6349 and #6353
2016-01-04 23:00:22 -08:00
Daniel Rosenwasser 5ab5cfd2fd Contextually type the RHS of logical 'and' and comma expressions. 2016-01-04 22:54:37 -05:00
Daniel Rosenwasser 2cb7ab9692 Merge pull request #6232 from Microsoft/contextuallyTypeJsxStringLiteralAttributes
Contextually type JSX string literal attributes
2016-01-04 14:50:09 -05:00
Mohamed Hegazy 996f16940e Merge pull request #6098 from guybedford/master
Naive implementation for #6097
2016-01-04 09:38:27 -08:00
Nathan Shively-Sanders ec4c6fea2d Merge branch 'master' into lint-nested-++ 2016-01-04 08:56:05 -08:00
Ryan Cavanaugh 0debd2b6cd Merge pull request #6290 from RyanCavanaugh/fix5865
Tag 'react' import as used if it exists when targeting --jsx preserve
2016-01-04 07:47:01 -08:00
Wesley Wigham 7bb2ee56d0 Fix #6277 - stop looking for any specifically, and use isTypeSubtypeOf like the old code 2016-01-03 07:43:30 -05:00
Ryan Cavanaugh 2c4856ae71 Issue correct errors for missing JSX closing tags
Fixes #6280
2015-12-29 16:00:15 -08:00
Ryan Cavanaugh 80a16de570 Tag the 'react' import as used even under --jsx preserve
Fixes #5865
2015-12-29 14:43:57 -08:00
Ryan Cavanaugh 3288f5bb6d Make linter happy 2015-12-29 13:16:00 -08:00
Ryan Cavanaugh e12855bca0 Escape quotes when they appear as HTML entities in JSX text
Fixes #6241
2015-12-29 12:39:27 -08:00