5948 Commits

Author SHA1 Message Date
Ron Buckton
bd8d8b353e Merge branch 'master' into fix16153 2017-05-30 17:41:17 -07:00
Ron Buckton
3029313f32 Fix issue with 'for await' over a union type 2017-05-30 15:14:52 -07:00
Yui
d82a57ea5d Merge pull request #16122 from Microsoft/master-fix16092
[Master] ts-style @property
2017-05-30 13:41:27 -07:00
Nathan Shively-Sanders
2c3c4dd465 Merge pull request #16135 from katemihalikova/diff3
Add support for diff3-style merge
2017-05-30 11:27:22 -07:00
Kanchalai Tanglertsampan
27078f995e Merge branch 'master' into master-fix16092 2017-05-30 08:25:53 -07:00
Yui
f938caf8c8 Merge pull request #16134 from Microsoft/master-fix15250
[Master] Fix 15250 - treat "object" and "Object" the same in JSDoc type def
2017-05-30 08:07:39 -07:00
Kate Miháliková
2d60b2d117
Add tests and baselines 2017-05-30 08:04:18 +02:00
Yui T
d35e538123 Add fourslash tests 2017-05-29 21:48:43 -07:00
Yui T
5c7c113203 Update tests and baselines 2017-05-29 21:48:34 -07:00
Yui T
0ead501c86 Update tests and baselines 2017-05-29 20:37:15 -07:00
Yui T
227198fae1 Add tests and update baselines 2017-05-27 19:11:08 -07:00
Anders Hejlsberg
bcf84f4958 Merge pull request #16072 from Microsoft/improveTypeArgumentInference
Infer from generic function return types
2017-05-26 10:59:40 -07:00
Yui
3186fc4897 Merge pull request #16094 from Microsoft/master-@propWithBracket
[Master] @prop with bracket for optional property
2017-05-26 10:55:43 -07:00
Andy
3cd9f3d2d4 Support services for @typedef (#16087)
* Support services for @typedef

* Ensure JSDocTypeReference has SemanticMeaning.Type

* Get SemanticMeaning right
2017-05-26 09:52:46 -07:00
Yui T
8ae2fbadd0 Add tests and baselines 2017-05-25 22:35:15 -07:00
Yui
068256b8b0 Merge pull request #16070 from Microsoft/master-15916
[Master] Take into account optional property in parameter
2017-05-25 22:05:25 -07:00
Yui T
4f791040fc Add tests and baselines 2017-05-25 20:16:52 -07:00
Andy
2ceb350bac Merge pull request #16059 from Microsoft/mappedTypeDeclarations
Set '.declarations' on a property of a homomorphic mapped type
2017-05-25 09:43:36 -07:00
Anders Hejlsberg
f29d7df5d1 Add tests 2017-05-24 15:50:30 -07:00
Yui
21a35b256d Merge pull request #16052 from Microsoft/master-fix15825
[Master] fix 15825
2017-05-24 10:56:58 -07:00
Andy Hanson
b0de80f07e Set '.declarations' on a property of a homomorphic mapped type 2017-05-24 08:32:48 -07:00
Kanchalai Tanglertsampan
bd422e3a52 Add tests and update baselines 2017-05-23 16:11:23 -07:00
Herrington Darkholme
2f65b2c160 fix #11463, null assertion block uninitialized error (#14020) 2017-05-23 14:13:32 -07:00
Mohamed Hegazy
5ef6192c20 Allow export default interface. Related to issue 3792. (#16040)
* Allow export default interface. Related to issue 3792.

* Update exportDefaultAbstractClass test

* Allow default export to be a non-value for lookup purposes

* Add local usage to exportDefaultInterface test
2017-05-23 13:40:03 -07:00
Andy
23b2545586 Merge pull request #16031 from Microsoft/isWriteAccess
findAllReferences: Make "isWriteAccess" handle special declaration kinds
2017-05-23 11:11:18 -07:00
Yui
1c3cdf11b5 Fix the issue 15232 (#16004) 2017-05-23 10:26:07 -07:00
Yui
e4aa515191 [Master] Fix 15179 missing comment in switch case clause (#16033)
* Fix emit comments after switch case clause

* Update baselines

* Add new tests and baselines
2017-05-23 10:24:46 -07:00
Andy
7adfa8d854 Merge pull request #16023 from Microsoft/mrjs
In path mapping module resolution, try loading from path as directory even if it has an extension
2017-05-23 09:58:06 -07:00
Andy
8b15e2b523 Merge pull request #16026 from Microsoft/importEqualsMethod
buildSymbolDisplay: Handle alias parentSymbol
2017-05-23 09:57:32 -07:00
Andy Hanson
7b0bd090e2 findAllReferences: Make "isWriteAccess" handle special declaration kinds 2017-05-23 09:14:19 -07:00
Andy Hanson
3690926e62 In path mapping module resolution, try loading from path as directory even if it has an extension 2017-05-23 08:11:42 -07:00
Andy Hanson
8894915d1a buildSymbolDisplay: Handle alias parentSymbol 2017-05-23 08:03:43 -07:00
Arthur Ozga
567b10d71c Merge pull request #15545 from aozgaa/atTypesPrefixAndImportSuffix
At types prefix and import suffix
2017-05-22 16:53:04 -07:00
Anders Hejlsberg
0b37adc3a7 Fix fourslash test 2017-05-22 16:48:45 -07:00
Nathan Shively-Sanders
bc914c02e6 Merge pull request #15932 from Microsoft/decl-emit-class-expr-as-type-literal
Declaration-emit class expressions as type literals
2017-05-22 15:46:38 -07:00
Nathan Shively-Sanders
ecaf44d474 Add more tests and update baselines 2017-05-22 14:57:56 -07:00
Andy
bba8e74496 Fix path in importDeclTypes.ts test (#15992) 2017-05-22 10:25:40 -07:00
Nathan Shively-Sanders
a0fa8ae6c4 Address most PR comments
I am still working on the error for class expressions that extend from a
non-exported base.
2017-05-22 10:18:31 -07:00
Andy
24d98f2295 Merge pull request #15856 from Microsoft/jsdoc
Support for JSDoc in services
2017-05-22 07:46:52 -07:00
Ryan Cavanaugh
f489f5af4d Merge pull request #15569 from RyanCavanaugh/new_refactor
Refactoring support
2017-05-19 11:23:46 -07:00
Ryan Cavanaugh
f6fbe61718 Refactoring support (squash) 2017-05-19 10:45:49 -07:00
Andy
616edae4af Merge pull request #15954 from Microsoft/typeArgs
Unconditionally compute type arguments of class base type
2017-05-19 10:36:39 -07:00
Noel Varanda
4cd20b1335 Fix #15540: Throw error when importing @types (#15866)
* Fix #15540: Throw error when importing @types

Fix issue: #15540

- Modify checker; external imports to account for imported modules
containing '@types/'.
- Add diagnostic message.
- Add test case

* FIX-15540: Review changes

- Replace `substr` with `startsWith`
- move diagnostics message to more relevant place
- Add `removePrefix` helper function
2017-05-19 09:38:04 -07:00
Andy Hanson
ce1e0097f0 Unconditionally compute type arguments of class base type 2017-05-19 08:56:56 -07:00
Andy Hanson
d646c727e7 Merge branch 'master' into jsdoc 2017-05-19 08:18:18 -07:00
Andy Hanson
ba884bc27b Merge branch 'master' into jsdoc 2017-05-19 08:14:52 -07:00
Andy
38ece3b703 Merge pull request #15737 from Microsoft/findAllRefs_module
Support find-all-references for a module specifier
2017-05-19 08:11:56 -07:00
Nathan Shively-Sanders
db3696c789 Test:retain undefined in spreads w/strictNullChecks
Add test case and update baselines with new errors
2017-05-18 13:59:07 -07:00
Nathan Shively-Sanders
e77024915e Test:decl emit for class expressions as type lits
Add test and update baselines
2017-05-18 09:11:26 -07:00
Andy
5e20c1ce11 Merge pull request #15910 from Microsoft/primitives
getAllPossiblePropertiesOfTypes: Skip primitives
2017-05-17 13:10:56 -07:00