Commit Graph

5285 Commits

Author SHA1 Message Date
Sheetal Nandi
839dde3cf2 Mark as referenced aliases in Union that will get emitted as part of decorator metadaa
Fixes #13449
2017-01-17 11:22:27 -08:00
Sheetal Nandi
b345a781d7 Add test for class from external module is used in union 2017-01-17 11:22:27 -08:00
Andy Hanson
30ccc7a5d0 Merge branch 'master' into map5 2017-01-17 10:42:27 -08:00
Andy
4ba382a1d1 Merge pull request #13478 from Microsoft/string_literal_rest_parameter
Support completions for string literal in rest parameter
2017-01-17 06:40:15 -08:00
Ron Buckton
ed13dde154 Merge pull request #13505 from Microsoft/fix13504
Emit 'object' type in declaration emitter
2017-01-16 15:05:41 -08:00
Andy
3b0f2c152b Merge pull request #13476 from Microsoft/findallrefs_unclosure
Move code out of closure in `getReferencedSymbolsForNode`
2017-01-16 09:18:39 -08:00
Ron Buckton
061175ef9f Emit 'object' type in declaration emitter 2017-01-15 16:26:17 -08:00
Andy Hanson
f1b481a1b6 Support completions for string literal in rest parameter 2017-01-13 14:13:49 -08:00
Andy Hanson
0b8de64a1b Move code out of closure in getReferencedSymbolsForNode 2017-01-13 13:20:39 -08:00
Andy
d86d850211 Merge pull request #13401 from Microsoft/navbar_exported_functions
Include "export" modifier on function assigned to an export (`export const x = () => 0;`).
2017-01-13 10:33:39 -08:00
Andy
43a2d3849b Merge pull request #13446 from Microsoft/export_equals_completion
Include properties of an `export =` value in import completions.
2017-01-13 09:55:43 -08:00
Andy Hanson
639f5cb6e5 Fix bug for constructor with modifier 2017-01-13 08:10:58 -08:00
Anders Hejlsberg
2711303539 Merge pull request #13448 from Microsoft/fixMappedTypeRelations
Improve generic mapped type relations
2017-01-12 13:20:31 -10:00
Anders Hejlsberg
0f49703030 Merge pull request #13427 from Microsoft/nonPrimitiveObjectRelations
Unconstrained type parameter not assignable to 'object' type
2017-01-12 13:19:27 -10:00
Andy Hanson
113338c791 Merge branch 'master' into map5 2017-01-12 12:35:00 -08:00
Zhengbo Li
a36db0ea10 Merge pull request #13424 from zhengbli/13129
Change the module specifier search order
2017-01-12 12:06:28 -08:00
Anders Hejlsberg
dafea7f54d Add tests 2017-01-12 10:49:58 -08:00
Andy Hanson
890676a5d8 Include properties of an export = value in import completions. 2017-01-12 07:33:36 -08:00
Anders Hejlsberg
0e0953fc4f Add tests 2017-01-11 16:11:16 -08:00
Zhengbo Li
c897235364 Change the module specifier search order 2017-01-11 14:30:37 -08:00
Andy Hanson
30462e11ef Merge branch 'master' into map5 2017-01-11 12:24:47 -08:00
Anders Hejlsberg
5abd3230a4 Add regression test 2017-01-11 11:50:41 -08:00
Andy Hanson
f0e1fd93f7 Merge branch 'master' into map5 2017-01-11 07:17:37 -08:00
Andy Hanson
2ae5806210 Include "export" modifier on function assigned to an export (export const x = () => 0;). 2017-01-10 13:04:32 -08:00
Nathan Shively-Sanders
c9e301f236 Test:object rest skips only class methods
Previously, it skipped all methods.
2017-01-10 08:55:15 -08:00
Anders Hejlsberg
d7160c7b75 Merge pull request #13338 from Microsoft/fixCircularConstraints
Improve handling of circular constraints
2017-01-10 04:40:50 -10:00
Anders Hejlsberg
81e891812e Add regression test 2017-01-09 16:51:46 -08:00
Andy
1570476d5b Merge pull request #13367 from Microsoft/goToDefinition_name
goToDefinition: Use the name of a declaration (if possible) when creating DefinitionInfo
2017-01-09 14:06:29 -08:00
Anders Hejlsberg
3bc8c7e015 Merge branch 'master' into fixMappedTypeCombinedMappers
# Conflicts:
#	src/compiler/checker.ts
2017-01-09 11:38:05 -08:00
Anders Hejlsberg
ecb2115aeb Merge pull request #13358 from Microsoft/iifeMissingArguments
Infer optional types for IIFE parameters with missing arguments
2017-01-09 09:30:49 -10:00
Anders Hejlsberg
73fbe5a8e7 Merge pull request #13356 from Microsoft/fixCombinedTypeMappers
Fix nested generic mapped type instantiations
2017-01-09 09:30:19 -10:00
Nathan Shively-Sanders
e4dcd0803b Merge pull request #13365 from Microsoft/object-spread-removes-class-methods
Omit only class methods from object spreads
2017-01-09 11:10:33 -08:00
Andy Hanson
2124fcf588 goToDefinition: Use the name of a declaration (if possible) when creating DefinitionInfo. 2017-01-09 11:05:53 -08:00
Anders Hejlsberg
80ef89b822 Add regression test 2017-01-09 09:19:03 -08:00
Nathan Shively-Sanders
309a361b19 Test method removal of object spread
Test that
1. Only class methods get removed
2. Methods from both left and right get removed.
2017-01-09 08:59:36 -08:00
Andy Hanson
23fa422b59 String literal completions: Use call signature only if we are *immediately* in a call expression 2017-01-09 07:52:52 -08:00
Andy Hanson
a0641b2c20 Merge branch 'master' into map5 2017-01-09 06:36:19 -08:00
Andy Hanson
c28d98a146 Fix test 2017-01-09 06:36:07 -08:00
Anders Hejlsberg
70763dabb5 Add regression test 2017-01-08 15:28:38 -08:00
Anders Hejlsberg
d0aa306961 Add tests 2017-01-07 15:16:26 -08:00
Anders Hejlsberg
855488fc6d Add additional regression test 2017-01-06 17:35:09 -08:00
Anders Hejlsberg
f1da780a5e Add regression tests 2017-01-06 17:20:58 -08:00
Anders Hejlsberg
ee03c0dc87 Update tests 2017-01-06 17:19:34 -08:00
Nathan Shively-Sanders
5b075ff924 Merge pull request #12728 from Microsoft/instanceof-requires-callable-rhs
Instanceof requires callable or constructable right-hand side
2017-01-06 13:49:36 -08:00
Andy Hanson
8c5afd7f54 Merge branch 'master' into map5 2017-01-06 13:03:34 -08:00
Nathan Shively-Sanders
e9e7fcecbd Merge pull request #12501 from HerringtonDarkholme/non-primitive
Fix #1809, introduce non primitive object type
2017-01-06 09:51:08 -08:00
Andy
91af4ae6b3 Merge pull request #10782 from Microsoft/react_whitespace
For JSX text, construct a single literal node `"foo bar"` instead of `"foo" + " " + "bar"`
2017-01-05 13:55:42 -08:00
Zhengbo Li
9a62db2b5c Merge pull request #13287 from zhengbli/importFixExtendedTsconfig
For `path` ending with `index`, use the `path` pattern for the import quick fix
2017-01-04 15:37:48 -08:00
Zhengbo Li
b19a949ce4 Support path that specified index 2017-01-04 13:35:42 -08:00
Daniel Rosenwasser
3d5545664b Merge pull request #13230 from Microsoft/instanceofRelationshipTargetTypes
Check if uninstantiated types are the same when narrowing by instanceof
2017-01-04 12:26:57 -05:00