Commit graph

6394 commits

Author SHA1 Message Date
Zhengbo Li c701f307bf Merge branch 'master' of https://github.com/Microsoft/TypeScript into updateDomDTs 2015-06-03 15:25:36 -07:00
Vladimir Matveev ef54047a65 address PR feedback 2015-06-03 15:22:17 -07:00
Cyrus Najmabadi 7b17f6ec8c Don't check if *all* constituent types are 'any'.
Instead check if *any* of hte constituent types are 'any', or if *all*
if the constituent types have some other flag.
2015-06-03 15:16:16 -07:00
Anders Hejlsberg 990f19b69e Merge branch 'master' into tsConfigExclude
Conflicts:
	src/compiler/sys.ts
2015-06-03 15:12:13 -07:00
Anders Hejlsberg b55117792f Merge pull request #3316 from Microsoft/circularInstantiatedTypes
Detect circular instantiated types
2015-06-03 15:08:00 -07:00
Cyrus Najmabadi 7ca13ee945 Check for 'any' only by using the flag, not by checking for instance equality. 2015-06-03 15:06:58 -07:00
Daniel Rosenwasser ca884d434f Merge branch 'master' into testPerf
Conflicts:
	src/harness/harness.ts
2015-06-03 14:56:08 -07:00
Vladimir Matveev 7e3a3f45e1 emit module name for system modules, add moduleName argument to 'transpile' function 2015-06-03 14:55:42 -07:00
Anders Hejlsberg 87d43aa6f5 Merge branch 'master' into circularInstantiatedTypes
Conflicts:
	src/compiler/checker.ts
	src/compiler/types.ts
2015-06-03 14:13:16 -07:00
Anders Hejlsberg dd8f3c41ad Addressing CR feedback 2015-06-03 14:08:37 -07:00
Cyrus Najmabadi cdb6d5bca5 Don't access the anyType directly. Encapsulate all access to it behind a helper. 2015-06-03 13:56:55 -07:00
Daniel Rosenwasser 64a31e2e51 Renamed functions, removed the duplicates found from renaming. 2015-06-03 13:51:53 -07:00
Vladimir Matveev 269ae3ab99 introduce FileMap to store mappings with filenames as keys 2015-06-03 13:48:34 -07:00
Daniel Rosenwasser 3fe308d2a6 Added an explanation for the lookahead. 2015-06-03 13:46:13 -07:00
Zhengbo Li c7b2fe016d Remove the DocumentEvent itself from createEvent overload. 2015-06-03 13:40:36 -07:00
Jason Freeman 1bb46e3f33 Update LKG after commit 34a5514fef 2015-06-03 13:39:25 -07:00
Jason Freeman 34a5514fef Rename new test 2015-06-03 13:36:52 -07:00
Jason Freeman 9394c5ca04 Add test for object literal methods 2015-06-03 13:36:51 -07:00
Jason Freeman 22cc3a7d84 Add hopefully helpful comment 2015-06-03 13:36:50 -07:00
Jason Freeman 46da6678ad Return expressions always need to be type checked 2015-06-03 13:36:49 -07:00
Daniel Rosenwasser 3cd480ddb6 Accepted baselines. 2015-06-03 12:05:53 -07:00
Daniel Rosenwasser 3cac56af1a Fixed case for the 'declare' keyword. 2015-06-03 12:05:12 -07:00
Mohamed Hegazy 4fd3bcff4f Merge pull request #3359 from jbondc/minor-1
Make index types optional in ResolvedType
2015-06-03 11:53:16 -07:00
Anders Hejlsberg 334b22452a Moving logic around in getReferencedImportDeclaration 2015-06-03 10:59:14 -07:00
Jason Freeman bf95bff6c1 Merge pull request #3353 from Microsoft/errorMessageTypo
Fix error message typo
2015-06-03 10:54:32 -07:00
Jason Freeman a1703d75b5 Merge pull request #3352 from Microsoft/checkFunctionReturnExpression
Always check return expressions when type checking a file
2015-06-03 10:54:22 -07:00
Vladimir Matveev f83d54b18f Merge pull request #3360 from Microsoft/port-3331
Port PR 3331 into release-1.5
2015-06-03 10:47:39 -07:00
Vladimir Matveev 86d9398a92 clean hostCache to avoid extending lifetime of script snapshots 2015-06-03 10:29:32 -07:00
jbondc e6ced33c13 Make index types optional in ResolvedType 2015-06-03 11:58:10 -04:00
Anders Hejlsberg 1e39130f41 Unified logic for renamed block scoped locals and other generated names 2015-06-03 06:57:20 -07:00
Tingan Ho 3aa0839d1b Fixes rebase issues 2015-06-03 17:11:11 +08:00
Tingan Ho b0542342c3 Addresses PR feedback 2015-06-03 16:58:57 +08:00
Tingan Ho b7d1df68fb Adds type guard methods 2015-06-03 16:58:56 +08:00
Tingan Ho f8e2b99b6c Adds tests 2015-06-03 16:58:56 +08:00
Tingan Ho 284b9db268 Fixes old tests 2015-06-03 16:58:56 +08:00
Tingan Ho 9515947092 Adds custom type guard 2015-06-03 16:58:55 +08:00
CyrusNajmabadi e39a2e7078 Merge pull request #3355 from Microsoft/LKG4
Update LKG.
2015-06-02 23:00:17 -07:00
Cyrus Najmabadi c7ea876b72 Update LKG. 2015-06-02 20:14:40 -07:00
Zhengbo Li 8b62a326d4 Dom lib file bug fix
Fix #3344; removed duplicated overloads for ``createEvent`` and some
minor fixes.
2015-06-02 19:22:03 -07:00
Mohamed Hegazy 9b12fabaa1 Merge pull request #3274 from Microsoft/filterTranspileDiagnostics
Fix #3245: ensure transpile diagnostics only include syntactic and compiler options diagnostics
2015-06-02 18:24:41 -07:00
Jason Freeman f390133a12 Rename new test 2015-06-02 18:21:39 -07:00
Jason Freeman f66b9c5d77 Fix error message typo 2015-06-02 18:13:39 -07:00
Jason Freeman eb7290eb70 Add test for object literal methods 2015-06-02 18:06:05 -07:00
Mohamed Hegazy 6902b050ca Respond to code review comments 2015-06-02 18:04:05 -07:00
Mohamed Hegazy c83054cd4b Merge branch 'release-1.5' into filterTranspileDiagnostics 2015-06-02 18:01:05 -07:00
CyrusNajmabadi fc445aab04 Merge pull request #2843 from Microsoft/binderSimplification3
Simplify binder flow. (alternate approach)
2015-06-02 18:00:25 -07:00
Jason Freeman 155d7f48ff Add hopefully helpful comment 2015-06-02 17:54:08 -07:00
Cyrus Najmabadi 4c18b2bcf8 Simplify code. 2015-06-02 17:41:34 -07:00
Jason Freeman 1bd7f5274a Return expressions always need to be type checked 2015-06-02 17:34:24 -07:00
Daniel Rosenwasser 70f74ad640 Accepted more baselines. 2015-06-02 17:31:20 -07:00