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
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
Nathan Shively-Sanders
8a9ee1aa54
Merge branch 'master' into add-undefined-to-default-valued-parameters
2017-01-05 11:29:12 -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
Sheetal Nandi
54ceb51d85
Fix the emit when jsx attribute expression is empty
...
Fixes #12994
2017-01-03 11:21:23 -08:00
about-code
d78247a402
Merge remote-tracking branch 'upstream/master'
2017-01-03 14:07:51 +01:00
Anders Hejlsberg
88c68256e6
Merge pull request #13234 from Microsoft/fixMappedTypeInstantiation
...
Fix mapped type instantiation
2016-12-31 07:48:48 -10:00
Anders Hejlsberg
bb37a61f61
Add regression test
2016-12-30 18:48:16 -08:00
Ron Buckton
30aff2f6d3
Rename and simplify 'iterationMode' option
2016-12-30 14:39:51 -08:00
Mohamed Hegazy
524fa64c8d
Merge pull request #11547 from Microsoft/interfaceFixes
...
Codefix for implementing interfaces
2016-12-30 14:28:55 -08:00
Mohamed Hegazy
9865a17c48
Merge pull request #11222 from kitsonk/array-slice-typings
...
Improve Array.prototype.splice typing
2016-12-30 14:28:15 -08:00
Ron Buckton
6a737c88f7
Move async generators to esnext
2016-12-30 14:10:11 -08:00
Mohamed Hegazy
60476ceffe
Fix test failure resulting from bad merge
2016-12-30 13:49:50 -08:00
Mohamed Hegazy
6418c2f9bb
Merge pull request #12543 from wonderful-panda/fix-12536
...
tsserver: get candidates from <K extends keyof Foo> (fix #12536 )
2016-12-30 13:23:07 -08:00
Ron Buckton
0d7c9dc4e0
Merge branch 'master' into asyncGenerators
2016-12-30 13:05:01 -08:00
Daniel Rosenwasser
d22f4fb513
Added a test.
2016-12-30 12:14:31 -05:00
about-code
ff828fd3a0
Merge remote-tracking branch 'upstream/master'
2016-12-30 12:06:33 +01:00
Andy Hanson
a67771265d
Merge branch 'master' into map5
2016-12-29 09:11:19 -08:00
Zhengbo Li
69e0677ea1
Support quick fixes for UMD global ( #12545 )
...
* Support quick fixes for UMD global
* refactor
2016-12-28 15:04:15 -08:00
rbuckton
4098058907
Merge branch 'master' into es6-new-target
2016-12-28 13:41:44 -08:00
Mohamed Hegazy
e128b94dc2
Merge pull request #13192 from slawomir/13063-strictNullChecks-breaks-typeof
...
#13063 Fix strictNullChecks breaking typeof
2016-12-28 12:52:21 -08:00
Andy Hanson
346a86582b
Merge branch 'master' into map5
2016-12-28 09:36:30 -08:00
Mohamed Hegazy
b82fe52ca4
Merge pull request #13191 from Microsoft/fix13157
...
Aggregate transform flags for ExpressionWithTypeArguments
2016-12-27 20:53:02 -08:00
Slawomir Sadziak
498568b16f
#13063 Fix strictNullChecks breaking typeof
...
* Allow typeof to use not-auto variable in strictNullChecks mode
2016-12-28 05:18:53 +01:00
Ron Buckton
d7b61b2da5
Aggregate flags for ExpressionWithTypeArguments
2016-12-27 17:58:42 -08:00
Mohamed Hegazy
5928f60d62
Do not report helper module errors in ambient contexts for Rest helper
2016-12-27 16:45:26 -08:00
Andy Hanson
9e33585a80
Merge branch 'master' into map5
2016-12-27 12:56:05 -08:00
Ron Buckton
bec32d4721
Merge pull request #13134 from Microsoft/fix13128
...
Fix non-thenable check for IndexedAccess types
2016-12-27 11:02:40 -08:00
Mohamed Hegazy
f0ad56d86e
Ensure test input is unformatted
2016-12-26 11:36:27 -08:00
Mohamed Hegazy
914bcfd616
Merge branch 'fix-11676' of https://github.com/flowmemo/TypeScript into flowmemo-fix-11676
2016-12-26 11:26:36 -08:00
flowmemo
eb188d0e24
fix #11676 - lint test
2016-12-24 09:25:14 +08:00
flowmemo
e32c62039e
fix #11676
2016-12-24 00:20:46 +08:00
Herrington Darkholme
634dff27a1
Update upstream
2016-12-23 10:04:11 +08:00
Nathan Shively-Sanders
88ef816a49
Merge branch 'master' into spread-jsx-expression-children
2016-12-22 14:12:44 -08:00
Ron Buckton
decc7c220e
Fix non-thenable check for IndexedAccess types
2016-12-22 14:05:03 -08:00
Mohamed Hegazy
b227cf01c9
Merge pull request #11119 from YuichiNukiyama/defult_export_error_message
...
Change error message for default export in namespace
2016-12-22 12:31:04 -08:00
Mohamed Hegazy
7e98fc71d0
Merge pull request #13111 from SaschaNaz/formatDestruct
...
Format destructuring by brace format option
2016-12-22 10:23:06 -08:00
Mohamed Hegazy
fbe7a4fb8d
Merge pull request #13125 from flowmemo/fix-13114
...
fix issue #13114
2016-12-22 10:10:42 -08:00
Alexander Rusakov
31abc59d11
Disallow old style octal literals in enums
2016-12-22 19:21:38 +03:00
flowmemo
4886b4248a
fix issue #13114
2016-12-22 23:18:12 +08:00
Kagami Sascha Rosylight
5fb82496fb
reposition defaultFormatOption
2016-12-22 12:54:23 +09:00
Kagami Sascha Rosylight
6b48f3b551
cancel getOption
2016-12-22 12:41:35 +09:00
Kagami Sascha Rosylight
ebf46a77e9
merge conflict
2016-12-22 12:37:28 +09:00
Kagami Sascha Rosylight
273a0dbdfe
add getOption
2016-12-22 12:33:50 +09:00
Herrington Darkholme
8b411effa6
address CR feedback
2016-12-22 10:07:23 +08:00
Herrington Darkholme
186ce38c18
add tests for generic type argument under strict null checks
2016-12-22 10:07:23 +08:00
Herrington Darkholme
c19221cb3e
accept new baselines
2016-12-22 10:07:22 +08:00
Herrington Darkholme
2fb51e7112
address code review feedback
2016-12-22 10:07:20 +08:00
Herrington Darkholme
b8648fa9f6
add tests for non primitive type
2016-12-22 10:06:42 +08:00
Kagami Sascha Rosylight
f65c865957
Merge branch 'master' of https://github.com/SaschaNaz/TypeScript into formatDestruct
2016-12-22 11:04:06 +09:00
Kagami Sascha Rosylight
82be6d1746
Format destructuring by brace format option
2016-12-22 11:03:20 +09:00
Mohamed Hegazy
c563e83c99
Merge pull request #13092 from SaschaNaz/jsxdangling
...
Format JSX expression and closing token
2016-12-21 16:43:35 -08:00
Nathan Shively-Sanders
e8b3ff0a1a
Merge pull request #12694 from Microsoft/destructuring-initialisers-can-reference-previous-elements
...
Binding element initialisers can reference previous elements
2016-12-21 16:29:44 -08:00
Kagami Sascha Rosylight
784f29bc83
merge conflict
2016-12-22 09:00:31 +09:00
Nathan Shively-Sanders
3b1309d53f
Test parameter initialisation narrowing rules
2016-12-21 14:58:44 -08:00
Sheetal Nandi
0c2cce565c
Merge pull request #13103 from Microsoft/metadataOfClassFromModule
...
Update current scope when visiting namespace elements
2016-12-21 13:59:31 -08:00
Sheetal Nandi
74a9924db7
Merge pull request #13100 from Microsoft/unusedLocalsInSpread
...
Do not report error on unused removed property from object spread when its module member
2016-12-21 13:59:05 -08:00
Sheetal Nandi
32c477a448
Test case for metadata type of class from a module
2016-12-21 12:28:29 -08:00
Sheetal Nandi
4cbb50a00c
Merge pull request #13034 from Microsoft/unionWithNull
...
Add serialization of typenode for null/undefined/never as part of metadata type
2016-12-21 12:21:55 -08:00
Mohamed Hegazy
e9da643518
Merge pull request #13090 from SaschaNaz/maptype
...
Format mapped type
2016-12-21 11:08:10 -08:00
Nathan Shively-Sanders
6281d1dd18
Merge pull request #12982 from Microsoft/jsdoc-instantiate-signature-with-function-arg
...
JSDoc functions are now in scope for instantiation
2016-12-21 10:42:11 -08:00
Vladimir Matveev
330cceda17
cache results of module resolution for non-relative module names ( #13047 )
...
* cache results of module resolution for non-relative module names
* use cache to short-circuit failures
2016-12-21 10:02:28 -08:00
Sheetal Nandi
32568b3fc2
Test case when module member is object spread pattern
2016-12-21 09:45:04 -08:00
Kagami Sascha Rosylight
ba7c1a13c3
do not insert space after function expressions
2016-12-21 21:54:40 +09:00
Kagami Sascha Rosylight
c28625f45b
merge conflict
2016-12-21 21:03:43 +09:00
Kagami Sascha Rosylight
f4c33aaec4
indent inside mapped type
2016-12-21 21:01:47 +09:00
Mohamed Hegazy
c90af3aa94
Merge pull request #13045 from aochsner/fix-12234
...
space-before-function-paren
2016-12-20 16:13:19 -08:00
Daniel Rosenwasser
6c60bfc4f0
Merge pull request #13072 from DanCorder/fix12218
...
Fix formatting for 'readonly' properties and linter error
2016-12-20 16:10:16 -08:00
Mohamed Hegazy
328a5ef2ba
Merge pull request #13024 from Microsoft/package_json_unsupported_extension
...
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-20 15:44:37 -08:00
Dan Corder
dc94264220
Fix issue 12218 and linter error
2016-12-20 22:32:37 +00:00
Anders Hejlsberg
e569edd8e6
Add regression test
2016-12-20 10:27:34 -08:00
Andrew Ochsner
3b3d71542c
Add InsertSpaceAfterConstructor option & additonal test cases
...
Fixes #12234
2016-12-20 10:05:10 -06:00
Andrew Ochsner
7bf73be7fe
space-before-function-paren
...
Adding option InsertSpaceBeforeFunctionParenthesis
Should be optional
Typically used to support http://eslint.org/docs/rules/space-before-function-paren
Fixes #12234
2016-12-19 23:05:30 -06:00
Sheetal Nandi
73a829279a
Support union of non identifier serialized type node with null/undefined/never
2016-12-19 16:50:17 -08:00
Sheetal Nandi
59403796c7
Add serialization of typenode for null/undefined/never as part of metadata type
...
Fixes #12684 and #11933
2016-12-19 14:17:42 -08:00
Mohamed Hegazy
8ae0376e75
Merge pull request #13016 from arusakov/disallow_old_style_octal_literal_types
...
Disallow old style octal literal types
2016-12-19 13:58:20 -08:00
Vladimir Matveev
0649c2272c
cache per-folder module resolutions during construction of the program ( #13030 )
2016-12-19 13:48:45 -08:00
Ron Buckton
87eeb577a3
Merge branch 'master' into asyncGenerators
2016-12-19 11:51:52 -08:00
Ron Buckton
5f32d3ba03
Merge branch 'master' into es6-new-target
2016-12-19 11:39:33 -08:00
Andy Hanson
720a3bfa16
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-19 08:10:05 -08:00
arusakov
142a6f6420
Disallow old style octal literal types
2016-12-19 11:49:01 +03:00
Anders Hejlsberg
f834caf27a
Add tests
2016-12-16 15:01:34 -08:00
Nathan Shively-Sanders
739c0838e0
More tests of initialised parameters adding undefined
2016-12-16 13:40:16 -08:00
Nathan Shively-Sanders
8b29e8235f
Merge branch 'master' into add-undefined-to-default-valued-parameters
2016-12-16 10:03:01 -08:00
Nathan Shively-Sanders
8ae9c7de21
JSDoc functions are now in scope for instantiation
...
Previously, `isSymbolInScopeOfMappedTypeParameter` did not understand
JSDoc, so it would cause generic function declarations in JSDoc not be
instantiated.
2016-12-16 09:49:29 -08:00
Ron Buckton
0f78f53780
Merge pull request #12967 from Microsoft/fix12749
...
Do not transform JSX tag names for ES3
2016-12-15 20:50:02 -08:00
Ron Buckton
40d08df90b
Do not transform JSX tag names for ES3
2016-12-15 16:33:49 -08:00
Vladimir Matveev
f034022e25
lift multiple statements into block if necessary ( #12965 )
2016-12-15 16:31:50 -08:00
Anders Hejlsberg
8265e29038
Merge pull request #12927 from Microsoft/mappedTypesPropsAndIndex
...
Preserve declared properties when mapping types with index signatures
2016-12-14 15:23:29 -08:00
Anders Hejlsberg
6cd7454a9b
Add tests
2016-12-14 14:59:10 -08:00
Daniel Rosenwasser
8e94d84953
Merge pull request #12893 from Microsoft/capturedThisFix
...
Avoid replacing last statement of derived constructors if 'this' is referenced.
2016-12-14 13:31:08 -08:00
Daniel Rosenwasser
dd0a3809d6
Added a tests for super property accesses within super calls of derived classes.
2016-12-14 12:48:02 -08:00
jramsay
2e97cffe61
Merge pull request #12898 from Microsoft/NavigateToFixForIIFE
...
NavigateTo is not working correctly for declarations in IIFEs
2016-12-14 10:56:44 -08:00
Arthur Ozga
3fc94bbd3b
Rename Tests
2016-12-14 10:38:00 -08:00
Arthur Ozga
4af3937e37
Merge branch 'master' into interfaceFixes
2016-12-14 09:35:09 -08:00
Nathan Shively-Sanders
f097eafd11
More tests of parameter initialiser type
2016-12-14 08:49:21 -08:00
Arthur Ozga
4b02099372
add tests
2016-12-14 08:42:05 -08:00
Arthur Ozga
3cfac081d5
abstract class expr instantiation and abstract fix works with class expr
2016-12-14 08:40:41 -08:00
Yuichi Nukiyama
ec72ad64b6
update
2016-12-14 23:55:18 +09:00
Jason Ramsay
97641e7c3c
NavigateTo is not working correctly for declarations in IIFEs
...
Fix: visit the node's children even when the function declaration name is undefined
2016-12-13 16:47:32 -08:00
Mohamed Hegazy
c9111a0dbb
Fix https://github.com/Microsoft/TypeScript/issues/12316 : Add method
to known tag names
2016-12-13 16:36:54 -08:00
Nathan Shively-Sanders
ae2a13cf18
Merge pull request #12896 from Microsoft/implicit-any-error-on-explicit-any
...
Set symbol/flags only on (fresh) object spreads
2016-12-13 14:15:52 -08:00
Nathan Shively-Sanders
587ba8d0ae
Test:spreading any doesn't set flags on anyType
...
And update baselines
2016-12-13 13:55:13 -08:00
Vladimir Matveev
c71e6cc9ef
add a new line if after writing trailing comments ( #12894 )
2016-12-13 12:57:21 -08:00
Vladimir Matveev
e5e1533d49
mark types used in decorator metadata as referenced ( #12890 )
2016-12-13 11:46:06 -08:00
Nathan Shively-Sanders
caad486a46
More test cases and notes
2016-12-13 11:10:12 -08:00
Nathan Shively-Sanders
d62dd291bd
Merge branch 'master' into add-undefined-to-default-valued-parameters
2016-12-13 10:40:04 -08:00
Mohamed Hegazy
c76a3a6fef
Merge pull request #12782 from Microsoft/fix12439
...
Fix paramtypes metadata emit
2016-12-12 16:22:34 -08:00
Mohamed Hegazy
24c56a5733
Merge pull request #12775 from Microsoft/fix12724
...
Fix error on extends in declaration file with importHelpers
2016-12-12 16:18:22 -08:00
Nathan Shively-Sanders
525a06f2b3
Merge pull request #12858 from Knagis/master
...
Fixed missing whitespace in jsDoc comments. Fixes #12236
2016-12-12 15:12:57 -08:00
Kārlis Gaņģis
aa4a0b6469
Fixed jsDoc parser - no longer omits asterisks in the middle (if the line does not start with asterisk) and additional case for whitespaces being ignored
2016-12-13 00:05:16 +02:00
Anders Hejlsberg
055c0af397
Merge pull request #12843 from Microsoft/mappedTypeModifiers3
...
Additional tweak to mapped type property modifier propagation
2016-12-12 13:15:19 -08:00
Vladimir Matveev
d0506735e3
elaborate check before converting fresh literal type to regular ( #12595 )
2016-12-12 12:37:06 -08:00
Kārlis Gaņģis
19070648eb
Added test for https://github.com/Microsoft/TypeScript/issues/12236
2016-12-12 22:33:45 +02:00
Andy
a33e6536e0
Merge pull request #12852 from Microsoft/untyped_augmentation_2
...
Produce an error for an augmentation of an untyped module even if `moduleNotFoundError` is not defined
2016-12-12 12:33:37 -08:00
Nathan Shively-Sanders
65bb78d569
Merge pull request #12808 from Microsoft/self-referencing-spread-recursive-loop
...
Self-referencing spread recursive loop
2016-12-12 10:40:34 -08:00
Vladimir Matveev
496a14a021
create new lexical environment for the body of converted loop ( #12831 )
2016-12-12 10:18:30 -08:00
Vladimir Matveev
a604d84f5c
guard against visiting the same symbol table multiple times ( #12818 )
2016-12-12 10:17:07 -08:00
Andy Hanson
55fc62bc45
Merge branch 'master' into map5
2016-12-12 07:50:09 -08:00
Andy Hanson
83eddb549e
Produce an error for an augmentation of an untyped module even if moduleNotFoundError
is not defined
2016-12-12 07:36:54 -08:00
Arthur Ozga
ad011108e6
Consolidate Tests
2016-12-11 22:07:49 -08:00
Arthur Ozga
1ba6c8605b
Merge branch 'master' into interfaceFixes
2016-12-11 21:51:29 -08:00
Arthur Ozga
469745b181
Synthetic signature uses existing parameter names
2016-12-11 21:50:46 -08:00
Anders Hejlsberg
cedc53eb27
Add more tests
2016-12-11 17:44:29 -08:00
Anders Hejlsberg
7c5c664a1c
Merge pull request #12826 from Microsoft/mappedTypeModifiers2
...
Improve propagation of modifiers in mapped types
2016-12-10 15:16:05 -08:00
Anders Hejlsberg
57cb4aceb7
Merge pull request #12770 from Microsoft/deferIndexedAccess
...
Defer indexed access T[K] with non-generic K
2016-12-10 15:15:39 -08:00
Anders Hejlsberg
7fdfcf11cd
Add test to verify use of Pick<T, K> with setState
2016-12-10 10:15:18 -08:00
Anders Hejlsberg
7e974fadb6
Modify tests
2016-12-10 10:04:49 -08:00
Arthur Ozga
d724517110
Merge branch 'master' into interfaceFixes
2016-12-09 13:28:05 -08:00
Nathan Shively-Sanders
809706ba00
Test self-assignment w/array spread in loop
2016-12-09 10:52:49 -08:00
Sheetal Nandi
a2fb5f9ce8
Merge pull request #12778 from Microsoft/unusedLocalsAndObjectSpread
...
Do not report unused local error on locals that are intended for removing properties with object spread
2016-12-09 09:28:54 -08:00
Arthur Ozga
819a654bb3
Add tests and fix rest parameters
2016-12-08 18:34:35 -08:00
Ron Buckton
6a1ccd8de4
Adds support for new.target
2016-12-08 17:31:18 -08:00
Arthur Ozga
97b3d7a9ef
make index signature fix work with generics
2016-12-08 17:19:19 -08:00
Ron Buckton
00abd7e28b
Fix paramtypes metadata emit
2016-12-08 17:04:37 -08:00
Arthur Ozga
2f51b363bf
add missing index signature support
2016-12-08 16:34:15 -08:00
Sheetal Nandi
81452c544a
Do not report unused local error on locals that are intended for removing properties with object spread
...
Fixes #12766
2016-12-08 15:12:35 -08:00
anubmat
9dd769dc3c
Merge pull request #12741 from Microsoft/allowBracketCompletionInComments
...
Allow brace completion in comments
2016-12-08 14:37:11 -08:00
Sheetal Nandi
9505a18894
Add tests when object spread is used in destructuring
2016-12-08 14:35:35 -08:00
Ron Buckton
09761b5f07
Fix error on extends in declaration file with importHelpers
2016-12-08 13:43:32 -08:00
Nathan Shively-Sanders
96c14de26a
More tests:default-valued parameter+strictNullChecks
2016-12-08 10:25:21 -08:00
Anders Hejlsberg
29f6e7ff12
Merge branch 'master' into deferIndexedAccess
...
# Conflicts:
# src/compiler/checker.ts
# tests/baselines/reference/keyofAndIndexedAccess.js
# tests/baselines/reference/keyofAndIndexedAccess.symbols
# tests/baselines/reference/keyofAndIndexedAccess.types
# tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts
2016-12-08 09:53:56 -08:00
Nathan Shively-Sanders
f79fca7087
Merge pull request #12675 from Microsoft/subsubclass-can-access-protected-constructor
...
Subsubclass can access protected constructor
2016-12-08 08:58:58 -08:00
Anders Hejlsberg
311bb3b2da
Add circularity tests
2016-12-08 06:53:29 -08:00
Andy Hanson
6b1cc8972d
Use native maps when they're available
2016-12-08 06:40:31 -08:00
Ron Buckton
91f0194e6a
Merge pull request #12743 from Microsoft/fix12737
...
Fix await for inherited promise
2016-12-07 17:38:47 -08:00
Mohamed Hegazy
da4d41ff21
Merge pull request #12740 from Microsoft/fix12727
...
Fix decorator emit for accessors
2016-12-07 17:18:58 -08:00
Ron Buckton
8dcbea9675
Fix await for inherited promise
2016-12-07 17:17:17 -08:00
Arthur Ozga
c22e47d26d
add test for computed literals
2016-12-07 17:12:42 -08:00
Arthur Ozga
5cd0ea3741
handle well-known computed property/method names
2016-12-07 17:00:20 -08:00
Nathan Shively-Sanders
bb9b6819b3
Merge branch 'master' into add-undefined-to-default-valued-parameters
2016-12-07 16:12:25 -08:00
Anubha Mathur
cb0beb8343
Merge remote-tracking branch 'origin/master' into allowBracketCompletionInComments
2016-12-07 16:02:18 -08:00
Anubha Mathur
31dde97bbd
Allowing brace completion inside comments in JS and TS files
2016-12-07 15:58:05 -08:00
Ron Buckton
7eca4bc9be
Fix decorator emit for accessors
2016-12-07 15:48:23 -08:00
Andy
b0bbbcbe07
Merge pull request #12730 from Microsoft/memberList_to_completionList
...
Use "completionList" methods instead of "memberList" ones, since they're identical
2016-12-07 15:34:32 -08:00
Andy Hanson
6d37a60445
Remove debug statement
2016-12-07 14:07:35 -08:00
Andy Hanson
9f20077914
Use "completionList" methods instead of "memberList" ones, since they're identical
2016-12-07 13:36:11 -08:00
Nathan Shively-Sanders
f15a7a3bac
Test:instanceof allows callable/constructable RHS
2016-12-07 13:16:23 -08:00
Arthur Ozga
c511aea581
Add Support for multiple signatures
2016-12-06 19:46:08 -08:00
Anders Hejlsberg
d7908d19be
Add tests
2016-12-06 14:42:08 -08:00
Nathan Shively-Sanders
4efa61cf80
More tests for binding elements referencing previous elements
2016-12-06 13:05:52 -08:00
Sheetal Nandi
2a65f5ba09
Merge pull request #12691 from Microsoft/displayPartKind
...
Write property name of destructuring pattern explicitly when writing symbol display for binding element
2016-12-06 12:48:57 -08:00
Sheetal Nandi
7d049c2742
Write property name of destructuring pattern explicitly
...
There wont be any symbol for the property name but we already know it is a property name
Fixes #12166
2016-12-06 11:42:44 -08:00
Ron Buckton
f89156bf55
Add error for super property before super
2016-12-06 10:47:02 -08:00
Nathan Shively-Sanders
7a9c11c72b
Test:destructuring array initialisers refer to previous elements
2016-12-05 16:27:59 -08:00
Arthur Ozga
f0c771303d
implement getters/setters as property
2016-12-05 14:52:08 -08:00
Arthur Ozga
0c1772b7e0
Merge branch 'interfaceFixes' of https://github.com/Microsoft/TypeScript into interfaceFixes
2016-12-05 14:06:02 -08:00
Arthur Ozga
8134d64a16
Merge branch 'master' into interfaceFixes
2016-12-05 13:49:23 -08:00
Nathan Shively-Sanders
e3fb305d5a
Test that sub-subclass can access protected ctor
2016-12-05 12:24:31 -08:00
Andy Hanson
157a9b02fc
Properly determine whether an augmentation is a ValueModule or NamespaceModule
2016-12-05 10:43:40 -08:00
Nathan Shively-Sanders
fe3ed12a20
Update tests and baselines
2016-12-05 09:58:33 -08:00
Nathan Shively-Sanders
a90d63a414
Add tests for property access w/string index sigs
2016-12-05 09:58:09 -08:00
Anders Hejlsberg
95aed3f4ee
Add regression test
2016-12-04 07:49:55 -08:00
Anders Hejlsberg
b7e8a6d1f1
Merge pull request #12643 from Microsoft/keyofUnionIntersection
...
Properly handle unions and intersections with keyof T and T[K]
2016-12-04 07:03:15 -08:00
Anders Hejlsberg
b4836e3d3d
Add tests
2016-12-03 17:19:10 -08:00
Anders Hejlsberg
773c9a734f
Add tests
2016-12-03 11:03:40 -08:00
Anders Hejlsberg
a230cb7e77
Merge pull request #12623 from Microsoft/nestedIndexedAccess
...
Treat indexed access types 'T[K]' as type variables
2016-12-02 15:53:49 -08:00
Anders Hejlsberg
1e2425ebfc
Add tests
2016-12-02 14:50:14 -08:00
Sheetal Nandi
86f69f13fa
Add test for the decorated method beginning with underscore
2016-12-01 13:04:11 -08:00
Nathan Shively-Sanders
fc1f6e3ee6
Merge pull request #12564 from Microsoft/rest-of-untyped-binding-pattern-is-any
...
Rest of untyped binding pattern is { [s: string]: any }
2016-11-30 17:39:18 -08:00
Nathan Shively-Sanders
77226318ef
Update baselines
2016-11-30 17:26:30 -08:00
Sheetal Nandi
adf9b26f50
Handle parameter type error for index signature in declaration emit
...
Fixes #12572
2016-11-30 16:28:26 -08:00
Nathan Shively-Sanders
8e648f9f6d
Add property access and --noImplicitAny tests
...
And update baselines
2016-11-30 13:14:52 -08:00
Ron Buckton
8af87dce8b
Merge branch 'master' into asyncGenerators
2016-11-30 12:47:50 -08:00
Anders Hejlsberg
2517187c4a
Add tests
2016-11-30 10:24:19 -08:00
Mohamed Hegazy
4c9bdb932a
Merge pull request #12552 from Microsoft/spreadRestIntersectionAndUnions
...
Spread & rest over intersection and unions
2016-11-29 17:27:04 -08:00
Anders Hejlsberg
aaf0c89ed3
Merge pull request #12563 from Microsoft/mappedTypeModifiers
...
Preserve modifiers in homomorphic mapped types
2016-11-29 16:06:20 -08:00
Anders Hejlsberg
65e98c84d5
Add more tests
2016-11-29 14:06:10 -08:00
Arthur Ozga
4b0697ff9d
fix test
2016-11-29 16:04:56 -06:00
Arthur Ozga
3cd1731628
abstract accessors can't have implementations
2016-11-29 15:59:28 -06:00
Nathan Shively-Sanders
f85ca9c395
Test that rest of untyped binding pattern is any
2016-11-29 13:50:56 -08:00
Mohamed Hegazy
51f5ef6752
Update test
2016-11-29 13:37:21 -08:00
Anders Hejlsberg
f366ae0332
Add tests
2016-11-29 12:48:55 -08:00
Arthur Ozga
ba80ce63ad
stubbing extra completions
2016-11-29 14:33:20 -06:00
Mohamed Hegazy
e4f0a50a7c
Update test name
2016-11-29 12:29:40 -08:00
Mohamed Hegazy
9ab55c1576
change test
2016-11-29 12:27:56 -08:00
Mohamed Hegazy
216f286133
Handel null and undefined in object spread and rest
2016-11-29 12:25:10 -08:00
Arthur Ozga
bf48564cc8
FIx typo in method stub.
2016-11-29 13:36:09 -06:00
Mohamed Hegazy
f2e30f6693
Allow union and intersection as targets for object spread and rest, and distribute spread&rest over unions
2016-11-29 00:04:20 -08:00