Commit graph

6508 commits

Author SHA1 Message Date
Tingan Ho e1f82c599b Removes old type predicate functions 2015-06-04 20:04:17 +08:00
Tingan Ho 19e725636e Adds PR feedback and removed references to typeguard (class) methods 2015-06-04 19:31:16 +08:00
Cyrus Najmabadi 2bf19e80c3 Speed up tests by not type-checking lib.d.ts unless the test asks for that. 2015-06-04 01:03:02 -07:00
Vladimir Matveev 113b7ed13d Merge pull request #3368 from Microsoft/fileMap
introduce FileMap to store mappings with filenames as keys
2015-06-03 23:13:06 -07:00
Jason Freeman 76076794c5 Update LKG after merging release-1.5 2015-06-03 18:01:54 -07:00
Jason Freeman abf18c5a11 Merge branch 'release-1.5' 2015-06-03 17:56:53 -07:00
Daniel Rosenwasser a3e87c92ee Reverted back to using the 'assertInvariants' parameter. 2015-06-03 17:55:55 -07:00
Jason Freeman b165b14932 Merge pull request #3374 from Microsoft/emitParenthesizedTypeAssertion
Emit parenthesized type assertion
2015-06-03 17:55:45 -07:00
Daniel Rosenwasser 68aca7ee30 Use a separate variable to track for if no-default-lib tag was encountered. 2015-06-03 17:39:52 -07:00
Jason Freeman e940fdc534 Don't use innerExpression in parenthesizeForAccess 2015-06-03 17:34:56 -07:00
CyrusNajmabadi 343a923a35 Merge pull request #3372 from Microsoft/taggedAny
Simplify handling of the 'any' type inside the checker.
2015-06-03 17:25:15 -07:00
Jason Freeman 26cf97430e Accept baselines for parenthesized type assertions 2015-06-03 17:22:51 -07:00
Jason Freeman 7a74d9f8d0 Add tests for parenthesized type assertions 2015-06-03 17:22:38 -07:00
Zhengbo Li 4120b2263e Merge pull request #3354 from zhengbli/updateDomDTs
Dom lib file bug fix
2015-06-03 17:22:27 -07:00
Jason Freeman 4ccf088734 Don't try to strip parentheses when emitting synthesized parenthesized expressions 2015-06-03 17:22:11 -07:00
Daniel Rosenwasser c3aa971e5d Removed comment. 2015-06-03 17:20:50 -07:00
Daniel Rosenwasser fb3042cdb5 Merge branch 'master' into testPerf
Conflicts:
	src/harness/harness.ts
	tests/baselines/reference/noDefaultLib.errors.txt
	tests/baselines/reference/typeCheckTypeArgument.errors.txt
2015-06-03 16:57:46 -07:00
Cyrus Najmabadi f526a1b0ff Merge branch 'master' into taggedAny 2015-06-03 16:47:07 -07:00
CyrusNajmabadi 22a1f02665 Merge pull request #3371 from Microsoft/harnessDiagnostics
Remove HarnessDiagnostics.  Just use the normal ts Diagnostic instead.
2015-06-03 16:42:22 -07:00
Zhengbo Li d3c7e2bff7 Add other overloads for texImage2D and texSubImage2D 2015-06-03 16:41:05 -07:00
Cyrus Najmabadi b5077bf372 Remove HarnessDiagnostics. Just use the normal ts Diagnostic instead. 2015-06-03 16:28:14 -07:00
Cyrus Najmabadi 12bea33fe3 Remove last read reference of TypeFlags.Any 2015-06-03 15:37:09 -07:00
Anders Hejlsberg ca4bf6bf03 Merge pull request #3188 from Microsoft/tsConfigExclude
Support "exclude" property in tsconfig.json
2015-06-03 15:35:04 -07:00
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