Anders Hejlsberg
a8de5ce836
Add regression test
2017-02-01 11:37:24 -08:00
Anders Hejlsberg
ddf4f45973
Merge pull request #13817 from Microsoft/fixIndexedAccessApparentType
...
Fix indexed access apparent type
2017-02-01 08:23:58 -10:00
Anders Hejlsberg
34ec895642
Add regression test
2017-02-01 09:47:30 -08:00
Ron Buckton
9ba2a6b14a
Skip type parameters.
2017-02-01 01:24:28 -08:00
Mohamed Hegazy
52841924da
Support string literal completion in case labels
2017-01-31 20:24:36 -08:00
Mohamed Hegazy
3b1b5e241f
Add string literal completion for equality expression
2017-01-31 16:44:59 -08:00
Nathan Shively-Sanders
ce629f03a7
Test duplicate identifier reporting in classes
2017-01-31 14:16:25 -08:00
Kanchalai Tanglertsampan
42c0816164
Merge branch 'master' into wip-master-statelessOverload
2017-01-31 11:33:07 -08:00
Nathan Shively-Sanders
69e9bfef35
Add typeof test case and update baselines
...
Test that `typeof x === 'random' as string`:
1. Does not issue an error.
2. Does not narrow.
2017-01-31 10:28:32 -08:00
Andy Hanson
8515f7e2b5
Change find-all-references tests to test for groups
...
* Also always test for isWriteAccess and isDefinition
2017-01-31 06:59:16 -08:00
Anders Hejlsberg
647e1836c3
Add tests
2017-01-30 16:53:43 -08:00
Mohamed Hegazy
1eb7b9183b
Merge branch 'master' of https://github.com/Microsoft/TypeScript
2017-01-30 16:42:44 -08:00
Anders Hejlsberg
34b4dbb260
Add regression test
2017-01-30 15:47:18 -08:00
Nathan Shively-Sanders
7cf595a381
Test removing undefined from initialized, annotated parameters
2017-01-30 15:00:50 -08:00
Anders Hejlsberg
f32f95ae23
Merge pull request #13743 from Microsoft/mixinClasses
...
Mixin classes
2017-01-30 12:47:21 -10:00
Ron Buckton
b58ef9e932
Merge branch 'master' into genericDefaults
2017-01-30 14:32:00 -08:00
Daniel Rosenwasser
d38bc54002
Merge pull request #13759 from Microsoft/fixMissingThis
...
Quick fix to add missing 'this.' for property accesses
2017-01-30 13:03:24 -08:00
Nathan Shively-Sanders
cca68adf87
Import helpers skips __assign when target >= ES6
...
Instead, Object.assign is emitted.
2017-01-30 12:42:19 -08:00
Daniel Rosenwasser
57e224ce3a
Merge branch 'master' into fixMissingThis
2017-01-30 12:01:12 -08:00
Anders Hejlsberg
56b1dcd8ea
Add tests
2017-01-29 12:39:15 -08:00
Nathan Shively-Sanders
bb40819f75
Update tests and baselines
2017-01-27 14:30:11 -08:00
Nathan Shively-Sanders
a67b80d5fa
Merge pull request #13726 from Microsoft/allow-super-to-access-method-signatures
...
Allow super to access method signatures
2017-01-27 10:27:22 -08:00
Nathan Shively-Sanders
4d67b0c2b6
Allow super to access method signatures
...
Previously, super was only allowed to access method *declarations*. But
method signatures can come from interfaces that merge with classes, and
should also be accessible as methods on super.
2017-01-27 09:53:57 -08:00
Nathan Shively-Sanders
9b1dd141f0
Merge pull request #13708 from Microsoft/propertyAssignment-is-not-assignment-target
...
Property assignment is not an assignment target
2017-01-27 09:32:10 -08:00
Nathan Shively-Sanders
cabcaaadcb
Property assignment is not an assignment target
...
In a destructuring assignment, a property assignment is not an
assignment target. Its initialiser is. For example:
```ts
({ source: target} = o);
```
Here, `target` is the assignment target. `source` is not. Previously,
both were assignment targets.
2017-01-26 16:08:55 -08:00
Kanchalai Tanglertsampan
989f9d82fd
Merge branch 'master' into wip-master-statelessOverload
2017-01-26 12:53:04 -08:00
Ron Buckton
64dd8065aa
Merge pull request #13661 from Microsoft/fix13646
...
More exhaustive needsDotDotForPropertyAccess for integer literals
2017-01-26 12:40:21 -08:00
Nathan Shively-Sanders
01a9e4f9be
isOptionalParameter says unused IIFE arguments are optional
...
Related to adding undefined, though not strictly the same, this change
adds '?' to unused IIFE parameters in quick info.
2017-01-26 12:01:27 -08:00
Vladimir Matveev
71d1a3f051
property handle misspelled namepath in @typedef tag ( #13702 )
2017-01-26 11:38:50 -08:00
Andy
65125791d2
Merge pull request #13643 from Microsoft/find_all_refs_default
...
Support find-all-references for default exports
2017-01-26 10:33:17 -08:00
Nathan Shively-Sanders
57400fd2f4
Merge pull request #13691 from Microsoft/typo
...
Fix typo
2017-01-26 09:11:39 -08:00
Nathan Shively-Sanders
e96b17b4f1
Merge branch 'master' into add-undefined-to-default-valued-parameters
2017-01-25 16:03:49 -08:00
Andy Hanson
97e964a08f
Fix typo
2017-01-25 14:15:06 -08:00
Andy
feb08b8b43
Merge pull request #13686 from Microsoft/goToDefinition_callback
...
For goToDefinition, verify that tryGetSignatureDeclaration returns a signature declaration and not a FunctionType.
2017-01-25 14:13:11 -08:00
Andy
5644b013c9
Merge pull request #13687 from Microsoft/find_implementation_position
...
Fix positionToLineOffset conversion for getImplementation
2017-01-25 13:19:14 -08:00
Andy Hanson
916e67a92c
For goToDefinition, verify that tryGetSignatureDeclaration returns a signature declaration and not a FunctionType.
2017-01-25 13:02:02 -08:00
Andy Hanson
16bdaaa0a6
Fix positionToLineOffset conversion for getImplementation
2017-01-25 12:53:39 -08:00
Ryan Cavanaugh
76b1e95c3d
Always call checkExpression
on JSX attribute values
...
Fixes #13676
2017-01-25 10:40:59 -08:00
Vladimir Matveev
abc30b26c7
handle cases when body of for-of statement is expanded after loop conversion ( #13677 )
2017-01-25 09:53:34 -08:00
Andy Hanson
432808d50b
Allow package.json "main" to specify a directory
2017-01-25 07:31:24 -08:00
Andy Hanson
a68a7cea3f
Merge branch 'master' into import_star_namespace
2017-01-25 07:03:35 -08:00
Kanchalai Tanglertsampan
3e07398aee
Merge branch 'master' into wip-master-statelessOverload
2017-01-24 14:18:39 -08:00
Andy Hanson
50442b5a23
Undo change to test
2017-01-24 13:57:42 -08:00
Ron Buckton
20249e5c4a
More exhaustive needsDotDotForPropertyAccess
2017-01-24 13:42:05 -08:00
Andy
c55b9ffe83
Merge pull request #13658 from Microsoft/findallrefs_mappedtypes
...
Support find-all-references on mapped types.
2017-01-24 13:31:48 -08:00
Andy Hanson
e8c3d548eb
Fix tests
2017-01-24 12:56:21 -08:00
Andy Hanson
0d21c241b2
Support find-all-references on mapped types.
...
* Need to put a 'mappedTypeOrigin' property in SymbolLinks
2017-01-24 10:17:17 -08:00
Nathan Shively-Sanders
ceb5fac343
Merge pull request #13558 from HerringtonDarkholme/rest-spread-intrinsic
...
Fix #13556 : enable rest/spread on `object`
2017-01-24 08:59:02 -08:00
Mohamed Hegazy
4888e4f958
Merge pull request #13636 from ds300/preserve-jsx-but-output-.js-files
...
Add option to output .js files while preserving jsx
2017-01-23 23:22:45 -08:00
Mohamed Hegazy
39b3ecb78c
Handel defining properties on function and class expressions in .js files
2017-01-23 22:48:37 -08:00
Mohamed Hegazy
b8329a05c3
basic support for declaring properties on funcitons
2017-01-23 22:45:38 -08:00
David Sheldrick
ebb666a9c2
delete fourslash testcase for --jsx react-native
2017-01-24 05:09:40 +01:00
Ron Buckton
f5f1c7e304
Merge branch 'genericDefaults' of https://github.com/Microsoft/TypeScript into genericDefaults
2017-01-23 19:40:07 -08:00
Ron Buckton
15232fe17c
Remove circular default check
2017-01-23 19:36:02 -08:00
Herrington Darkholme
24bb21c55a
address code review
2017-01-24 11:24:30 +08:00
Andy Hanson
0ca4cb25d6
Support find-all-references for default exports
2017-01-23 14:31:29 -08:00
David Sheldrick
7bf52ee1fd
add notifications and tests for jsx react-native es3
2017-01-23 22:08:39 +01:00
David Sheldrick
8d590d5191
rename preserveWithJsExtension to react-native
2017-01-23 21:42:39 +01:00
Kanchalai Tanglertsampan
378f444e14
Add tests and update baselines
2017-01-23 11:52:31 -08:00
Andy
6a192ceb6b
Merge pull request #13598 from Microsoft/node_modules_bundled_emit
...
Clean up code for getting emitted files
2017-01-23 11:48:37 -08:00
David Sheldrick
7879b22ea9
Add test case for preserveWithJsExtension
2017-01-23 19:30:24 +01:00
David Sheldrick
dd0ed44b9a
Add option to output .js files while preserving jsx
...
This commit adds the ability to preserve jsx in source code, but
also to output .js files rather than .jsx files. This is useful
for react-native which does not support .jsx files.
2017-01-23 18:17:16 +01:00
Anders Hejlsberg
80e5f2f314
Add regression test
2017-01-22 11:53:18 -08:00
Anders Hejlsberg
5b9004e1bc
Merge pull request #13604 from Microsoft/intersectionBaseTypes
...
Allow deriving from object and intersection types
2017-01-21 11:38:24 -10:00
Anders Hejlsberg
615784ad94
Add tests
2017-01-21 13:07:06 -08:00
Tingan Ho
1e5b7c5564
Add tests
2017-01-21 17:09:09 +01:00
Ron Buckton
76ba6a7f6a
Merge branch 'master' into genericDefaults
2017-01-20 20:37:35 -08:00
Ron Buckton
6b2c8cb7df
Defaults for type aliases
2017-01-20 20:33:41 -08:00
Vladimir Matveev
4ee8213dde
do not capture 'arguments' when property name 'arguments' is met ( #13600 )
...
do not capture 'arguments' when property name 'arguments' is met
2017-01-20 19:59:26 -08:00
Ron Buckton
fd228a93a7
Remove partial inference
2017-01-20 18:30:06 -08:00
Ron Buckton
a2be5e263a
Report error using type parameter from merged declaration
2017-01-20 17:58:28 -08:00
Sheetal Nandi
a185ddc885
Merge pull request #13584 from Microsoft/decoratorMetadata
...
Use the value symbol for decorator purpose only if it is same as type symbol
2017-01-20 13:46:19 -08:00
Andy Hanson
8886cefe58
Clean up code for getting emitted files
2017-01-20 10:46:15 -08:00
Andy Hanson
36a9f6798a
Merge branch 'master' into find_all_refs_primitive
2017-01-20 06:50:52 -08:00
Andy Hanson
1267fd3030
Don't use nameTable for type keywords, and don't handle keyof.
2017-01-20 06:41:57 -08:00
Mohamed Hegazy
d11d03a06c
Fix https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14036 :
...
Remove assert.
2017-01-19 17:36:16 -08:00
Sheetal Nandi
d22b963b0b
Add test for decorator referencing alias named Event
2017-01-19 14:22:22 -08:00
Ron Buckton
0b44a2c74c
Flexible declaration merging
2017-01-19 12:38:56 -08:00
Kanchalai Tanglertsampan
ab2e14f24e
Addressing code review in previous PR. Combining below commits
...
Address comment: fix spelling mistakes
Address comment: calling `checkApplicableSignatureForJsxOpeningLikeElement` from inside `checkApplicableSignature`
Address comment: fix spelling, rename function to be more consistent
Address comment: minor fix indentation, fix function name isObjectLiteralPropertyDeclaration => isObjectLiteralElement
Address PR: gotoDefinition return the last signature when there is an error in statelss function component
Address PR: convert Foreach to for...of
Address comment: fix type, inline code, clarify name of variables
2017-01-19 10:10:03 -08:00
Kanchalai Tanglertsampan
747ab054a2
Refactor getJsxAttributeSymbolsFromJsxOpeningLikeElement to createJsxAttributesTypeFromAttributesProperty
2017-01-19 09:51:01 -08:00
Kanchalai Tanglertsampan
6ce31d7dfe
Address comment: stop widen type when checking for spread any;
...
Address comment: using ternary operator, fix comments
2017-01-19 09:49:33 -08:00
Kanchalai Tanglertsampan
2fd5667a04
Update baselines
2017-01-19 09:46:43 -08:00
Kanchalai Tanglertsampan
3d19782b1c
Add language service tests
2017-01-18 15:29:38 -08:00
Kanchalai Tanglertsampan
70ca18e91c
Add a test for contextual type in JSXAttributes
2017-01-18 15:17:09 -08:00
Kanchalai Tanglertsampan
19d05484d8
Add tests for generic stateless function component
2017-01-18 15:16:59 -08:00
Kanchalai Tanglertsampan
9e3da083da
Add tests for overload stateless function component
2017-01-18 15:16:49 -08:00
Kanchalai Tanglertsampan
b0fd66d086
Add tests for using default attributes in JSX stateful component
2017-01-18 15:16:17 -08:00
Kanchalai Tanglertsampan
aea7d09578
Add tests for using spread attributes resolution in JSX stateful component
2017-01-18 15:16:12 -08:00
Kanchalai Tanglertsampan
d9927d4046
Update existed conformance tests
2017-01-18 15:16:04 -08:00
Andy Hanson
9665f25011
Simplify fourslash tests by adding some helpers
2017-01-18 13:55:31 -08:00
Andy Hanson
2d232c21a2
Support find-all-references for type keywords
2017-01-18 12:27:33 -08:00
Nathan Shively-Sanders
34fa27895f
Merge branch 'master' into property-access-for-string-index-sigs
2017-01-18 08:29:38 -08:00
Andy
ae8fd30444
Merge pull request #13546 from Microsoft/test_document_highlights
...
Update document highlight tests: Use ranges to represent expected highlights
2017-01-18 06:56:59 -08:00
Herrington Darkholme
b4c15982ff
fix #13556 : enable rest/spread on object
2017-01-18 14:57:20 +08:00
Andy Hanson
d1fb894d86
Update document highlight tests: Use ranges to represent expected highlights
2017-01-17 13:51:53 -08:00
Anders Hejlsberg
4d501d1f44
Merge pull request #13523 from Microsoft/fixNumericIndexedAccess
...
Fix numeric indexed access types
2017-01-17 11:51:52 -10:00
Nathan Shively-Sanders
899d51267d
Merge pull request #12065 from about-code/master
...
Fixing #442 : Impossible to define static 'length' function on class
2017-01-17 11:25:46 -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
Anders Hejlsberg
f7d8e3befc
Add regression test
2017-01-16 12:18:15 -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
Ron Buckton
35ef1f7cbf
Merge branch 'master' into asyncGenerators
2017-01-15 15:28:04 -08:00
Ron Buckton
ca16ba8fe7
Added comments and additional circularity tests
2017-01-14 15:41:40 -08:00
about-code
9b217e31df
Removing es6 method/property distinction.
...
Adding tests with default export and anonymous class expressions.
2017-01-14 16:30:12 +01:00
about-code
4718efd181
Removing es6 method/property distinction.
...
Adding tests with default export and anonymous class expressions.
2017-01-14 16:06:13 +01:00
about-code
66263b3782
Merge remote-tracking branch 'upstream/master'
2017-01-14 12:24:07 +01:00
Ron Buckton
442f5408b6
Updated Promise and PromiseLike to use defaults
2017-01-13 23:48:20 -08:00
Ron Buckton
3d3dae089f
Adds support for type parameter defaults
2017-01-13 22:53:02 -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
Zhengbo Li
aa706d785b
Support import fix for missing namespace as well
2017-01-10 17:57:08 -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