Andy
d7c630f4df
Merge pull request #14443 from Microsoft/specific_types
...
Use more specific types in a few cases
2017-03-21 12:26:04 -07:00
Yui
46587c8dca
Merge pull request #14235 from Microsoft/master-fix14043
...
[Master] fix 14043 collect return type from return statement in generator function
2017-03-21 11:06:11 -07:00
Yui
f5d566e794
Merge pull request #14152 from Microsoft/master-11566
...
[Master] Fix 11566 : SFC returns null
2017-03-21 09:18:15 -07:00
Kanchalai Tanglertsampan
2e28c06cb6
Merge branch 'master' into master-11566
2017-03-21 09:04:21 -07:00
Kanchalai Tanglertsampan
71e52dea92
finish remove unused yieldTypes
2017-03-21 08:38:01 -07:00
Yui
990d2fa54b
Merge pull request #14307 from Microsoft/master-13893
...
[Master] Fix 13893: Fix runtime crash when class is used before declaration
2017-03-21 08:36:59 -07:00
Kanchalai Tanglertsampan
6dc8072bb9
Merge branch 'master' into master-fix14043
...
# Conflicts:
# src/compiler/checker.ts
2017-03-21 08:17:33 -07:00
Kanchalai Tanglertsampan
bb5b20b587
Address code review
2017-03-21 08:07:11 -07:00
Yui
b6dfa39ce0
Merge pull request #14252 from Microsoft/master-fix12297
...
[Master] Fix 12297 undefined exception in writeReferencePath
2017-03-20 21:00:34 -07:00
Kanchalai Tanglertsampan
028c41b951
Merge branch 'master' into master-13893
2017-03-20 17:22:04 -07:00
Anders Hejlsberg
363c5144bc
Merge pull request #14635 from Microsoft/fixIntersectionMethodOverrides
...
Fix intersection method overrides
2017-03-20 16:24:05 -07:00
Andy
d5c1b71429
Merge pull request #14710 from Microsoft/lint
...
Fix lint errors
2017-03-20 14:50:36 -07:00
Andy
082cf11c36
Merge pull request #14730 from Microsoft/typo
...
Fix typo
2017-03-20 14:50:07 -07:00
Andy Hanson
b8aa84e8bf
Use more specific types in a few cases
2017-03-20 14:49:12 -07:00
Yui
de5211352a
Merge pull request #14132 from Microsoft/master-fix12952
...
[Master] Fix 12952 : throw exception when parsing conflict marker in JSX
2017-03-20 14:32:52 -07:00
Yui
7b04f1d60b
Merge pull request #14717 from Microsoft/master-onlyEmitUseStrictInExternalModule
...
[Master] Only emit "use strict" when users ask for or the file is external module
2017-03-20 14:32:20 -07:00
andy-ms
2a2c1a9c14
Add comment
2017-03-19 10:03:36 -07:00
andy-ms
50c18bbea0
Fix typo
2017-03-19 10:00:28 -07:00
Yui T
cc6140f6e9
Only emit "use strict" when users ask for or the file is external module
2017-03-17 17:22:02 -07:00
Andy
ac67b94a6e
Merge pull request #14690 from Microsoft/clean_up_parser
...
Clean up code in parser
2017-03-17 15:05:09 -07:00
Andy Hanson
6234cbb82f
Move comment to JSDoc
2017-03-17 14:04:36 -07:00
Andy Hanson
2305c10a65
Fix lint errors
2017-03-17 13:54:18 -07:00
Andy Hanson
18f283f68a
Add more missing quotes
2017-03-16 14:43:56 -07:00
Andy Hanson
9c0f77091c
Clean up code in parser
2017-03-16 13:23:35 -07:00
Mohamed Hegazy
7ead44f841
Merge pull request #14448 from DLehenbauer/removeWScript
...
Remove vestiges of WScript support
2017-03-16 12:23:32 -07:00
Vladimir Matveev
2b10611fbf
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer ( #14441 )
...
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00
Anders Hejlsberg
3f3b05e67e
Properly track method/property distinction for intersection members
2017-03-13 13:15:09 -07:00
Mohamed Hegazy
3ac54e8a47
Infer class property declarations from assignments in nested arrow functions
2017-03-12 15:00:24 -07:00
DLehenbauer
3f980bead0
Remove vestiges of WScript support (Issue #14414 )
2017-03-10 07:10:58 -08:00
Anders Hejlsberg
014aeb3fd3
Use immediate constraint instead of base constraint in T[K] relations
2017-03-09 11:50:07 -08:00
Mohamed Hegazy
0fb415ac61
Merge pull request #14492 from Microsoft/anyInferences
...
Set inference result to `any` instead of `{}` for .js files if generic type parameter inference found no candidates
2017-03-08 16:15:50 -08:00
Mohamed Hegazy
41dbae58f3
code review comments
2017-03-08 14:15:26 -08:00
Nathan Shively-Sanders
1bf4f06b2a
Merge pull request #14498 from Microsoft/narrow-default-initialised-parameters
...
Remove undefined from the type of default initialised parameters when narrowing
2017-03-07 15:03:57 -08:00
Vladimir Matveev
fab4ef0bde
cache semantic and declaration diagnostics in program ( #14516 )
2017-03-07 13:26:41 -08:00
Andy
6117ed7708
Merge pull request #14391 from Microsoft/lint_better
...
Update tslint to `latest` (`next` is still on 4.3) and lint for BOM
2017-03-07 11:41:55 -08:00
Mohamed Hegazy
89974bdaaf
Merge pull request #14172 from Microsoft/moduleExportsAlias
...
Fix #14171 : Recognize property assignements to `module.export` aliases as exports
2017-03-07 11:13:19 -08:00
Mohamed Hegazy
4610dc7e3b
Merge pull request #14508 from Busyrev/fix-function-parameter-default-value
...
FIX : #14507 Function parameter default value wrongly emmited by Printer
2017-03-07 10:34:33 -08:00
Nathan Shively-Sanders
24c8de21c4
Inline isFlowNarrowable
2017-03-07 10:20:02 -08:00
Nathan Shively-Sanders
2325fda8a6
Move isFlowNarrowable call inside getFlowTypeOfReference
2017-03-07 09:28:51 -08:00
Nathan Shively-Sanders
36513f21ab
Remove only undefined, not null | undefined, from declared type
2017-03-07 09:14:51 -08:00
Anders Hejlsberg
fa02c808d1
Remove null and undefined from contextual 'this' type
2017-03-07 09:07:34 -08:00
Mike Busyrev
1f46dd9949
FIX : #14507 Function parameter default value wrongly emmited by Printer
2017-03-07 19:35:57 +03:00
Mohamed Hegazy
3705b87c5c
Merge branch 'master' into infereClassPropertiesFromMethods
2017-03-06 16:53:51 -08:00
Mohamed Hegazy
8d9692129f
Fix typo
2017-03-06 16:53:39 -08:00
Mohamed Hegazy
b3161e365a
Merge pull request #14222 from Microsoft/addAnyStringIndexerToJSObjects
...
Add a string indexer to any for object literals on a .js file
2017-03-06 16:44:30 -08:00
Nathan Shively-Sanders
eaca169b11
Remove optionality from the initial type of default-valued parameters
...
When narrowing, remove optionality from the initial type of
parameters with initialisers. Note that the type of the initialiser is
not used; its presence just means that the initial type of the parameter
can't contain undefined. It could contain any other member of a declared
union type.
2017-03-06 16:21:54 -08:00
Yui
0425175b3a
Merge pull request #14493 from Microsoft/master-fixEmitExtraESModuleMark
...
[Master] Do not emit ESModule marker if file is not external module
2017-03-06 14:09:14 -08:00
Mohamed Hegazy
8f7fd0918b
Set inference result to any isntead of {} for .js files if generic type parameter inference found no candidates
2017-03-06 13:35:03 -08:00
Kanchalai Tanglertsampan
ed071a9b02
Only emit ESModule marker when there is no export equal and the file is external module
2017-03-06 13:33:51 -08:00
Anders Hejlsberg
f7242f3983
Merge pull request #14486 from Microsoft/strictChecks
...
New --strict master option
2017-03-06 11:23:15 -10:00