Commit graph

1546 commits

Author SHA1 Message Date
Daniel Rosenwasser 7b43672ce0 Amend baselines. 2015-01-31 12:09:22 -08:00
Daniel Rosenwasser e174fe4f47 Merge pull request #1575 from chrisbubernak/betterErrorsForTypesWithSameName
Better errors for types with same name
2015-01-30 21:08:48 -08:00
Vladimir Matveev a5ce3e126d Merge pull request #1792 from Microsoft/getScriptLexicalStructureWithbindingPatterns
handle binding patterns correctly when getting script lexical structure
2015-01-29 19:42:26 -08:00
Ryan Cavanaugh d0ca71f445 Correctly copy assumptions back into the relational cache 2015-01-29 13:32:27 -08:00
Ryan Cavanaugh b7824e8de4 Merge remote-tracking branch 'origin/master' into elaborateErrorsOnce 2015-01-29 11:27:39 -08:00
Daniel Rosenwasser e4d3051532 Added Jason's example for contextually typing parameters. 2015-01-27 22:39:48 -08:00
Daniel Rosenwasser 26929ee5f2 Merge pull request #1816 from Microsoft/typeArgsInSuperCall
Contextually type parameters in super calls using type arguments on the base class.
2015-01-27 17:29:48 -08:00
Cyrus Najmabadi 71de2de6ed Merge branch 'master' into emitCleanup 2015-01-27 17:10:33 -08:00
Daniel Rosenwasser 40796b2c6d Added more tests. 2015-01-27 14:42:39 -08:00
Sheetal Nandi a43bb47d7b Merge pull request #1697 from Microsoft/docCommentUnion
Fixes the duplicate doc comment display in case of union property
2015-01-27 14:21:39 -08:00
Daniel Rosenwasser 8ee09dbe6e Addressed Jason's pedantic correction over the wording of a comment. 2015-01-27 13:36:10 -08:00
Daniel Rosenwasser 4646d63558 Fixed fourslash test. 2015-01-27 13:28:32 -08:00
Anders Hejlsberg 9289cfb0b0 Merge pull request #1803 from Microsoft/enumUnionTypeGuard
Fixes to union types in type guards and instanceof
2015-01-27 06:52:03 -08:00
Anders Hejlsberg 5c3da7cc8c Merge branch 'master' into objectLiteralWidening
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/intTypeCheck.errors.txt
2015-01-27 06:28:04 -08:00
Daniel Rosenwasser 93dbcf006f Contextually type parameters in super calls using type arguments on the base class. 2015-01-26 18:42:17 -08:00
Jason Freeman ca8c446d3f Use transient symbols when computing the indexers for object literals 2015-01-26 16:48:53 -08:00
Vladimir Matveev 17b19bf465 Merge pull request #1779 from Microsoft/scopeOfUnionProperties
handle union properties in when doing getOccurences\findAllReferences
2015-01-26 15:21:48 -08:00
Anders Hejlsberg 0410394de0 Modifying test 2015-01-25 16:25:38 -08:00
Anders Hejlsberg 7f63180b64 Adding tests 2015-01-24 17:23:22 -08:00
Anders Hejlsberg d6eb486c3a Accepting new baselines 2015-01-24 08:04:23 -08:00
Vladimir Matveev f4ca318c39 add binding elements from variable declaration into script lexical structure 2015-01-24 00:17:55 -08:00
Jason Freeman bd29ca8389 Merge branch 'master' into computedProperties 2015-01-23 18:49:52 -08:00
Vladimir Matveev b05f2bf1a3 handle binding patterns correctly when getting script lexical structure 2015-01-23 17:08:30 -08:00
Vladimir Matveev 29776f4e9b Merge pull request #1782 from Microsoft/findAllRefs
use nameTable - services layer storage of identifiers in the file
2015-01-23 16:15:44 -08:00
Vladimir Matveev da6070bcf7 fixed typo in test name 2015-01-23 15:39:50 -08:00
Vladimir Matveev 6040e55fa4 add 'find all references' test 2015-01-23 15:36:36 -08:00
Vladimir Matveev 05ec43a0f3 make sure that enum values are computed before the emit 2015-01-23 12:04:55 -08:00
Jason Freeman 9c9434b80f Merge branch 'master' into computedProperties
Conflicts:
	tests/baselines/reference/intTypeCheck.errors.txt
2015-01-23 11:45:53 -08:00
Vladimir Matveev 379d03b5a7 use nameTable - services layer storage of identifiers in the file 2015-01-22 18:20:40 -08:00
Vladimir Matveev 0940d3bb3b handle union properties in when doing getOccurences\findAllReferences 2015-01-22 17:16:18 -08:00
Cyrus Najmabadi a82289c8b4 Emit comments in a lot more places. 2015-01-22 15:58:00 -08:00
Anders Hejlsberg ccffc9f25f Adding more tests 2015-01-22 15:12:55 -08:00
Anders Hejlsberg 963de957cb Adding regression test 2015-01-22 14:52:15 -08:00
Cyrus Najmabadi d2e96c1779 Simplify enum emit. 2015-01-22 14:45:55 -08:00
Anders Hejlsberg 21e6784038 Accepting new baselines 2015-01-22 11:04:09 -08:00
Jason Freeman f7a8ba28ff Use isTypeOfKind in computed property checks 2015-01-21 17:01:42 -08:00
Jason Freeman eeb4dc447b Merge branch 'master' into computedProperties 2015-01-21 15:51:31 -08:00
Anders Hejlsberg 2052ac3958 Merge pull request #1765 from Microsoft/unionTypeOperations
Correct handling of union types in expressions
2015-01-21 15:43:54 -08:00
Jason Freeman 768d818d27 Fix error message wording 2015-01-21 15:05:19 -08:00
Anders Hejlsberg f34620db63 Modifying and adding tests 2015-01-21 13:55:07 -08:00
Sheetal Nandi 4d1182401c Type alias declaration is type only declaration and doesnt make module instantiated
Handles #1724
2015-01-21 11:18:42 -08:00
Jason Freeman b022ccd430 Merge branch 'master' into computedProperties
Conflicts:
	src/compiler/checker.ts
2015-01-21 11:03:24 -08:00
Jason Freeman de5aa6c0d2 Fix source map scope name for computed properties 2015-01-21 11:01:05 -08:00
Ryan Cavanaugh 96f8d6273e Missed a file 2015-01-21 10:06:13 -08:00
Sheetal Nandi e8e2356afa Fixes the emit of comment when comment ends on last line
This fixes regression from 5a7500ca5e with addition of eof token
Handles #1714
2015-01-20 21:16:14 -08:00
Jason Freeman eb7798fbb2 Skip computed properties on declaration emit 2015-01-20 18:29:04 -08:00
Vladimir Matveev 7f749909da Merge pull request #1746 from Microsoft/formattingTemplateLiterals
fixed smart indentation\formatting in template literals
2015-01-20 17:54:47 -08:00
Anders Hejlsberg bb33167f7e Merge pull request #1692 from Microsoft/tsconfig
Support for tsconfig.json files
2015-01-20 17:08:26 -08:00
Jason Freeman 85219ee5e1 Check computed properties against indexers in classes 2015-01-20 17:07:55 -08:00
Vladimir Matveev 8497667f33 drop trailing trivia prior to rescanning it 2015-01-20 14:44:24 -08:00