TypeScript/tests/cases/conformance/es6
Nathan Shively-Sanders 5c2eeb20b1
Destructuring declaration prefers type annotation type (#25282)
* Destructuring declaration prefers type annotation type

Previously, getTypeForBindingElement would always union the declarations type and
the type of the default initializer. Now, if the declaration has a type
annotation, it does not union with the initializer type. The type
annotation's type is the one used.

* Small cleanup in parentDeclarationHasTypeAnnotation

* Refactoring based on PR comments

* Combine getCombined*Flags into a single helper function

Retain the individual functions since they are used a lot.

* Remove unneeded temp
2018-06-28 10:41:38 -07:00
..
arrowFunction
binaryAndOctalIntegerLiteral
classDeclaration
classExpressions
computedProperties
decorators/class
defaultParameters
destructuring Destructuring declaration prefers type annotation type (#25282) 2018-06-28 10:41:38 -07:00
for-ofStatements Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
functionDeclarations
functionExpressions
functionPropertyAssignments
memberFunctionDeclarations
moduleExportsAmd
moduleExportsCommonjs
moduleExportsSystem
moduleExportsUmd
modules Merge pull request #20671 from Kingwl/fix-import-not-existed-module 2018-04-17 17:29:07 -07:00
newTarget
propertyAccess
restParameters
shorthandPropertyAssignment Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
spread
Symbols
templates Added test in case 'super' is ever possibly parsed as a tagged template string. 2018-04-19 15:16:25 -07:00
unicodeExtendedEscapes
variableDeclarations
yieldExpressions Fix control flow loop in yield expression (#25228) 2018-06-26 12:50:29 -07:00