11935 Commits

Author SHA1 Message Date
Anders Hejlsberg
a2a48964f5 Accept new baselines 2016-06-28 17:07:42 -07:00
Anders Hejlsberg
85128e02da Narrow unions of literal types by equality and truthiness 2016-06-28 17:00:52 -07:00
Anders Hejlsberg
e900ebf856 Make boolean assignable to union types containing both true and false 2016-06-24 21:12:44 -07:00
Anders Hejlsberg
770f42377d Accept new baselines 2016-06-24 11:49:54 -07:00
Anders Hejlsberg
477489699c Correct handling of falsy types ("" | 0 | false) 2016-06-24 11:49:37 -07:00
Anders Hejlsberg
8455143fed Accept new baselines 2016-06-20 20:26:14 -07:00
Anders Hejlsberg
a91f71488b Literal types for const enum members 2016-06-20 20:24:54 -07:00
Anders Hejlsberg
3ccd68bbe4 Accept new baselines 2016-06-20 12:16:43 -07:00
Anders Hejlsberg
a9309178c4 Introduce literal type locations 2016-06-20 12:14:42 -07:00
Anders Hejlsberg
a204622ec6 Accept new baselines 2016-06-20 12:05:58 -07:00
Anders Hejlsberg
89596cb73b Numeric and boolean literal types 2016-06-18 07:21:23 -07:00
Anders Hejlsberg
c7dec0ea68 Merge pull request #9163 from Microsoft/typeGuardDiscriminants
Discriminated union types
2016-06-17 14:37:35 -07:00
Yui
0e6f8eb2bc Using baselines for transpile unittests (#9195)
* Conver to Transpile unittest to use baselines instead

* Add baselines

* Fix linting error
2016-06-16 10:50:01 -07:00
Sheetal Nandi
f96a7f03e4 Merge pull request #9166 from Microsoft/removeDotToken
Remove the stored dotToken from PropertyAccessExpression
2016-06-16 09:59:00 -07:00
Zhengbo Li
95ae809faa Merge pull request #7486 from zhengbli/fixLargeProjectTry2
Add upper limit for the program size to prevent tsserver from crashing
2016-06-15 17:31:15 -07:00
zhengbli
550d91249b Refactor code to make if statements cheaper 2016-06-15 16:52:07 -07:00
zhengbli
335443693f Merge branch 'master' of https://github.com/Microsoft/TypeScript into fixLargeProjectTry2
# Conflicts:
#	src/compiler/program.ts
#	tests/cases/unittests/tsserverProjectSystem.ts
2016-06-15 14:36:45 -07:00
Zhengbo Li
7bb739fa40 Merge pull request #9083 from zhengbli/i6853
Check use before declaration if both the use and decalration are not in module file
2016-06-15 12:43:30 -07:00
Zhengbo Li
8c38cbfb4b Merge pull request #9073 from zhengbli/i8523
Increase project reference count even when the opened file is referenced by it but not its root
2016-06-15 12:42:14 -07:00
Daniel Rosenwasser
9a2cf115c0 Merge pull request #9170 from Microsoft/emptyTupleAssertions
Correctly check types in type assertions
2016-06-15 12:35:04 -07:00
Andy
a1e0504ed4 Merge pull request #9189 from Microsoft/js_property_declaration
Allow property declarations in .js files
2016-06-15 12:20:41 -07:00
Mohamed Hegazy
97be083d99 Merge pull request #9100 from Microsoft/Fix9098
Fix #9098: report missing function implementation errors for merged …
2016-06-15 11:53:31 -07:00
Anders Hejlsberg
a3a0c9877b Merge pull request #9188 from Microsoft/relaxLogicalAnd
Relax && operator typing
2016-06-15 11:07:54 -07:00
Andy
e2376a74cc Merge pull request #9185 from Microsoft/simplify_range_tests
Use helper functions to simplify range tests
2016-06-15 11:04:58 -07:00
Andy Hanson
9b6472aec0 Remove old test 2016-06-15 11:00:27 -07:00
Andy Hanson
dd0411a2f3 Allow property declarations in .js files 2016-06-15 09:42:52 -07:00
Anders Hejlsberg
c9e5bcb276 Accept new baselines 2016-06-15 09:35:45 -07:00
Anders Hejlsberg
28b241e615 Add regression test 2016-06-15 09:28:45 -07:00
Anders Hejlsberg
6366a6d6a3 Remove String, Number, and Boolean from TypeFlags.Falsy 2016-06-15 09:28:28 -07:00
Andy Hanson
8a025fcff4 Use helper functions to simplify range tests 2016-06-15 09:05:15 -07:00
Daniel Rosenwasser
74a784c8be Accepted baselines. 2016-06-14 22:38:35 -07:00
Daniel Rosenwasser
52a96ac819 Always check type assertion types. 2016-06-14 19:13:32 -07:00
Daniel Rosenwasser
f786c5c187 Accepted baselines. 2016-06-14 19:03:00 -07:00
Daniel Rosenwasser
14c2bcf73a Added tests. 2016-06-14 19:02:47 -07:00
Mohamed Hegazy
38c89af6b2 Merge pull request #9174 from Microsoft/Fix9173
Fix #9173: clear out lib and types before creating a program in transpileModule
2016-06-14 18:05:06 -07:00
Mohamed Hegazy
784a76530c Fix #9173: clear out lib and types before creating a program in transpileModule 2016-06-14 17:44:57 -07:00
Daniel Rosenwasser
82b385f331 Accepted baselines. 2016-06-14 15:15:42 -07:00
Anders Hejlsberg
a3635ccd8b Merge branch 'master' into typeGuardDiscriminants
# Conflicts:
#	src/compiler/binder.ts
#	src/compiler/checker.ts
2016-06-14 13:08:17 -07:00
Daniel Rosenwasser
c9bab058d5 Check tuple types when getting the type node's type. 2016-06-14 13:06:28 -07:00
Sheetal Nandi
30b387183c Merge branch 'master' into removeDotToken 2016-06-14 12:07:20 -07:00
Nathan Shively-Sanders
7890fd58b9 Merge pull request #9088 from Microsoft/add-members-to-variable-declarations-initialised-with-function-expressions
Add members to variable declarations initialised with function expressions
2016-06-14 11:37:36 -07:00
Daniel Rosenwasser
0a1c4c60da Accepted baselines. 2016-06-14 11:36:14 -07:00
Daniel Rosenwasser
5a90c6777a Added tests. 2016-06-14 11:33:41 -07:00
Nathan Shively-Sanders
57f66b8efa Merge pull request #9148 from Microsoft/add-isDefinition-to-references
Add isDefinition to references
2016-06-14 11:12:53 -07:00
Sheetal Nandi
5ea469a8a8 No Need to store dot token when parsing property access expression 2016-06-14 11:02:40 -07:00
Daniel Rosenwasser
8917ddf8a1 Merge pull request #9151 from Microsoft/commonjsShorthands
Fix emit for shorthand properties when they refer to CommonJS exports.
2016-06-14 10:32:20 -07:00
Nathan Shively-Sanders
102a890214 Use isLiteralComputedPropertyDeclarationName 2016-06-14 10:27:36 -07:00
Andy
13a0f5905d Merge pull request #9159 from Microsoft/code_completion_escaping
Code completion escaping
2016-06-14 10:21:40 -07:00
Andy Hanson
6b05ecab5b Fix bug: do unescaping in the right place, so that it only affects escaped javascript identifiers 2016-06-14 09:39:48 -07:00
Nathan Shively-Sanders
7bf40c4935 Add more isDefinition tests and fix computed property bug 2016-06-14 09:39:30 -07:00