Anders Hejlsberg
cf998bf350
Accept new baselines
2017-08-25 08:49:59 -07:00
Ron Buckton
40f9ee4b02
Merge pull request #16767 from Yogu/patch-2
...
Add missing visitNode call to object literal members
2017-08-23 17:26:31 -07:00
Daniel Rosenwasser
a52030db8b
Merge pull request #17907 from Microsoft/excessPropCorrection
...
Provide spelling suggestions for excess property errors
2017-08-23 15:41:48 -07:00
Nathan Shively-Sanders
ca86dc4deb
Test:jsdoc nullable syntax legal in type arguments
...
And update baselines
2017-08-23 15:00:40 -07:00
Nathan Shively-Sanders
2b9aba47d6
Merge pull request #17984 from Microsoft/typeReferenceRelations
...
Recursive-related-check generic type references based on the id of their targets and type arguments
2017-08-23 13:22:27 -07:00
Nathan Shively-Sanders
7a9491384c
Update baselines
2017-08-23 11:49:24 -07:00
Nathan Shively-Sanders
e27d0917c9
Test performance improvement:nested reference skip
2017-08-23 11:46:44 -07:00
Daniel Rosenwasser
f8e8afec1b
Accepted baselines.
2017-08-22 21:18:25 -07:00
Ron Buckton
a6015e94a5
Merge pull request #17879 from Microsoft/fix17875
...
Remove debug assertions due to invalid syntax in generators transform
2017-08-22 14:34:25 -07:00
Wesley Wigham
009d9b4f22
For JSX Attributes, map over unions of props for contextual types ( #17790 )
...
* For JSX Attributes, allow attributes to fulfill the member of any union member; rather than all of them
* Use cached way of getting partial union members
* Reuse methodology used for object literals for jsx attributes
* Inline assignment
* Rename type
2017-08-22 14:13:56 -07:00
Wesley Wigham
bdc2aa8afb
Allow use before declaration for export= assignments ( #17967 )
2017-08-22 13:47:53 -07:00
Daniel Rosenwasser
40e9e85cb3
Merge branch 'master' into excessPropCorrection
2017-08-22 12:10:16 -07:00
Anders Hejlsberg
2b10784415
Merge pull request #17922 from Microsoft/baseExpressionTypeParameters
...
Class type parameters not in scope in base class expression
2017-08-22 07:14:54 +01:00
Anders Hejlsberg
914d428ff1
Add regression test
2017-08-19 09:53:46 +02:00
Anders Hejlsberg
049b336936
Accept new baselines
2017-08-19 09:46:09 +02:00
Daniel Rosenwasser
a1ad389d24
Accepted baselines.
2017-08-19 00:08:25 -07:00
Wesley Wigham
a136f554a7
Fix stack overflow when resolving default construct signatures ( #17878 )
...
* Fix stack overflow when resolving default construct signatures
* No need for || emptyArray
2017-08-18 17:20:57 -07:00
Daniel Rosenwasser
8b10ea4c1d
Accepted baselines.
2017-08-18 12:55:54 -07:00
Daniel Rosenwasser
4ac9091ea1
Accepted baselines.
2017-08-18 11:46:51 -07:00
Arthur Ozga
6b68da1185
Revert "Fix getConstraintOfIndexedAccess"
2017-08-18 11:32:53 -07:00
Arthur Ozga
439cdca52f
Merge pull request #17870 from Microsoft/fix-getConstraintOfIndexedAccess
...
Fix getConstraintOfIndexedAccess
2017-08-18 11:32:48 -07:00
Ron Buckton
fad97e369a
Remove debug assertions due to invalid syntax in generators transform
2017-08-17 17:32:06 -07:00
Andy
eef7d8bd3d
Treat explicit imports from node_modules as external library imports ( #16364 )
...
* Treat explicit imports from `node_modules` as external library imports
* Update baselines
2017-08-17 13:26:38 -07:00
Nathan Shively-Sanders
1b4f90705f
Test getConstraintOfIndexedAccess fixes and update baselines
2017-08-17 12:45:20 -07:00
Daniel Rosenwasser
2729281a14
Merge pull request #17631 from Microsoft/synthesizedNamespaces
...
Always emit leading 'var' declarations for synthesized namespaces
2017-08-16 23:56:07 -07:00
Andy
54af8aa945
Array arguments to concat should be ReadonlyArrays ( #17806 )
2017-08-16 14:32:14 -07:00
Nathan Shively-Sanders
146f828919
Merge pull request #17710 from Microsoft/add-readonly-check-to-property-access-of-index-signature
...
Add readonly check to property access of index signature
2017-08-16 11:16:54 -07:00
Nathan Shively-Sanders
7809398ad4
Indexed-assignment readonly err is not unknownType
...
Now, in an assignment to an indexed access of a readonly property, the
resulting type is still the property's type. Previously it was
unknownType. This improves error reporting slightly by reporting some
errors that were previously missed.
2017-08-16 10:06:01 -07:00
Anders Hejlsberg
ce2ac1751e
Merge pull request #17771 from Microsoft/fixCircularContextualType
...
Fix circular contextual return type error
2017-08-16 09:17:15 +02:00
Daniel Rosenwasser
6e60a017bb
Accepted baselines.
2017-08-14 21:24:51 -04:00
Wesley Wigham
e2f35ecead
Accept missing baseline updates for #13721
2017-08-14 13:23:22 -07:00
Anders Hejlsberg
a1cbeb2eca
Merge pull request #17767 from tycho01/15768-generic-numeric-index-error
...
loosen number index check, fixes #15768
2017-08-14 19:02:06 +02:00
Daniel Rosenwasser
ea7c7d3467
Merge pull request #16631 from Microsoft/fix13721
...
Emit class annotation comment on downlevel classes
2017-08-14 10:33:41 -04:00
Anders Hejlsberg
57705fc4e0
Add regression test
2017-08-14 09:08:11 +02:00
Tycho Grouwstra
1d6863ab0b
loosen number index check, fixes #15768
2017-08-14 02:18:47 +08:00
Jan Melcher
8b4db9875d
Add test case for nested object spread / methods
...
See #16765 .
2017-08-13 15:11:49 +02:00
Wesley Wigham
d03d1074ee
Make compiler options which map to a flag case-insensitive again ( #17755 )
2017-08-11 19:59:43 -07:00
Daniel Rosenwasser
33a036b679
Accepted baselines.
2017-08-11 18:47:21 -04:00
Ryan Cavanaugh
c110ecb870
Merge pull request #17625 from RyanCavanaugh/extract-method-2
...
Extract Method
2017-08-11 10:54:48 -07:00
Andy
f64b8ad902
Add "preserveSymlinks" option ( #16661 )
...
* Add "preserveSymlinks" option
* Respond to PR comments
2017-08-11 10:03:21 -07:00
Ryan Cavanaugh
c27ee81341
Merge branch 'master' into extract-method-2
2017-08-10 17:02:14 -07:00
Daniel Rosenwasser
66e2a0bb94
Accepted baselines.
2017-08-10 08:28:43 -07:00
Andy
fe3a05e89a
A function should be context-sensitive if its return expression is ( #17697 )
...
* A function should be context-sensitive if its return expression is
* Remove outdated comment
* Fix typo
2017-08-10 07:08:24 -07:00
Andy
4c824505ad
Treat NoSubstitutionTemplateLiteral same as a StringLiteral ( #17704 )
2017-08-10 06:53:48 -07:00
Wesley Wigham
8fde483393
Add test for #16144 ( #17712 )
2017-08-10 00:10:36 -07:00
Nathan Shively-Sanders
85c10320db
Test:property access respects readonly index signature
2017-08-09 16:16:28 -07:00
Nathan Shively-Sanders
a59f77ffb4
Test:type predicate uses correct index to report errors
2017-08-09 15:45:28 -07:00
Andy
e1ba65ae64
Add simple version of chooseOverload for common case of single non-generic signature ( #17589 )
...
* Add simple version of `chooseOverload` for common case of single non-generic signature
* Use a single function
2017-08-09 14:41:38 -07:00
Andy
37b20ee670
For duplicate source files of the same package, make one redirect to the other ( #16274 )
...
* For duplicate source files of the same package, make one redirect to the other
* Add reuseProgramStructure tests
* Copy `sourceFileToPackageId` and `isSourceFileTargetOfRedirect` only if we completely reuse old structure
* Use fallthrough instead of early exit from loop
* Use a set to efficiently detect duplicate package names
* Move map setting outside of createRedirectSourceFile
* Correctly handle seenPackageNames set
* sourceFileToPackageId -> sourceFileToPackageName
* Renames
* Respond to PR comments
* Fix bug where `oldSourceFile !== newSourceFile` because oldSourceFile was a redirect
* Clean up redirectInfo
* Respond to PR comments
2017-08-09 14:39:06 -07:00
Wesley Wigham
a6f37f55e4
Add a leading space on binary operator token trailing comments ( #17691 )
...
* Add a leading space on token trailing comments
* Demystify comment
2017-08-09 14:27:37 -07:00