Andy Hanson
0c60824860
Set @typedef parent pointer, but still do not bind a symbol
2017-05-17 08:02:07 -07:00
Andy Hanson
76955ce792
Expand tests that jsdoc does not affect typescript code
2017-05-17 07:27:08 -07:00
Andy Hanson
dc40f5d6b9
Merge branch 'master' into jsdoc
2017-05-17 07:17:32 -07:00
Andy
fc4dd2b4e5
Merge pull request #15890 from Microsoft/todoComments
...
Services utilities: Combine `isInsideComment` with `isInComment`
2017-05-17 07:09:33 -07:00
Arthur Ozga
ebcbd8f828
Merge pull request #15790 from aozgaa/typeToStringViaTypeNode
...
Type to string via type node
2017-05-16 21:41:47 -07:00
Arthur Ozga
11019e4a4a
Merge branch 'master' into typeToStringViaTypeNode
2017-05-16 15:35:31 -07:00
Arthur Ozga
0820f69270
respond to comments
2017-05-16 15:28:32 -07:00
Andy Hanson
0defde7185
Services utilities: Combine isInsideComment
with isInComment
2017-05-16 15:05:46 -07:00
Andy
ed7ae8060f
Merge pull request #15880 from Microsoft/getDeclarationOfKind
...
getDeclarationOfKind: Improve type safety
2017-05-16 15:02:09 -07:00
Klaus Meinhardt
5fb77a0901
Update return types of APIs ( #15887 )
...
* Update types.ts
* Update types in parser.ts and scanner.ts
2017-05-16 14:13:58 -07:00
Andy
8ceaa33943
Merge pull request #15860 from Microsoft/no-filter
...
getTokenAtPositionWorker: Remove duplicate loop
2017-05-16 14:05:54 -07:00
Nathan Shively-Sanders
bfa39d7c55
Merge pull request #15884 from Microsoft/fix-gulp-tsc-instrumented
...
Add target and lib references for tsc-instrumented
2017-05-16 13:38:34 -07:00
Nathan Shively-Sanders
56d04429b3
Add target and lib references for tsc-instrumented
...
I think they were previously provided implicitly.
2017-05-16 11:30:30 -07:00
Andy Hanson
ea42644c8f
Replace unnecessary let
with two const
s
2017-05-16 10:25:46 -07:00
Andy
7473dcc041
Merge pull request #15882 from Microsoft/findAncestor
...
findAncestor: Add generic overload for use with type predicates
2017-05-16 10:22:28 -07:00
Nathan Shively-Sanders
995f1a6757
Update baselines
2017-05-16 09:53:38 -07:00
Nathan Shively-Sanders
353d9e2310
Clean up original errors
...
The old "supplied parameters do not match any call signature" was
either inaccurate, redundant or vague. The previous commits fix the
vagueness problem. This commit fixes the inaccuracy and redundancy.
1. When there are NO candidates, the error should say so. (This only
happens once in our tests, when calling `super()` with a base class of
type `any` in a JS file.)
2. When the call is to a decorator, `resolveCall` already receives a
specific fallback error message from the decorator handling code. Adding
"supplied parameters do not match ..." is not helpful.
I also cleaned up the new code a bit after I noticed that all the error
creation functions take `string | number`, so I didn't need calls to
`toString` in my code.
2017-05-16 09:48:23 -07:00
Andy Hanson
badfcbfb43
findAncestor: Add generic overload for use with type predicates
2017-05-16 09:45:01 -07:00
Andy Hanson
ffa21fe271
getDeclarationOfKind: Improve type safety
2017-05-16 09:38:26 -07:00
Anders Hejlsberg
2a9a6e821f
Merge pull request #15863 from Microsoft/fixRedundantTypeInference
...
Eliminate redundant work in type inference
2017-05-16 09:34:31 -07:00
Anders Hejlsberg
ed1a6c10e2
Address CR feedback + defer creation of visited map
2017-05-16 09:12:32 -07:00
Nathan Shively-Sanders
ca61755eb5
Update baselines with new error numbers
2017-05-16 08:07:04 -07:00
Nathan Shively-Sanders
381f056c68
Split error messages so they are localisable
2017-05-16 08:05:07 -07:00
Andy Hanson
2d3c7bae24
break -> continue
2017-05-16 07:10:38 -07:00
Arthur Ozga
b2176c1872
no ascii escaping in param names
2017-05-15 19:11:36 -07:00
Arthur Ozga
a9ab30c068
revert baselines
2017-05-15 18:43:06 -07:00
Arthur Ozga
bba41a8a0c
avoid ascii escaping literal text
2017-05-15 18:42:49 -07:00
Nathan Shively-Sanders
c9308fc610
Update baselines
2017-05-15 16:22:35 -07:00
Nathan Shively-Sanders
35a9be3b6c
Improve arity errors for all calls
...
Not just ones with a single call signature.
This is pretty great!
2017-05-15 16:22:04 -07:00
Mohamed Hegazy
d51e467238
Fix #15463 : use intersection types to emulate spread in generic react components ( #15851 )
...
* Fix #15463 : use intersection types to emulate spread in generic react components
* Fix lint errors
* reverse condition
2017-05-15 15:46:50 -07:00
Ron Buckton
f93c71c34e
Merge pull request #15862 from Microsoft/fix15829
...
Fix issue with throw in async delegator.
2017-05-15 15:37:48 -07:00
Anders Hejlsberg
e9ccb16642
Eliminate redundant exploration in type inference
2017-05-15 15:32:14 -07:00
Ron Buckton
05d2f2d5d9
Fix issue with throw in async delegator.
2017-05-15 15:28:55 -07:00
Nathan Shively-Sanders
e5e833e53e
Update baselines
2017-05-15 15:26:22 -07:00
Nathan Shively-Sanders
93b1eafb9f
Improve arity error messages
...
For calls with one signature.
2017-05-15 15:25:21 -07:00
Andy Hanson
4d028a81ee
getTokenAtPositionWorker: Remove duplicate loop
2017-05-15 15:18:31 -07:00
Andy Hanson
0140e6df77
Remove goToImplementation test, not supported for parameters
2017-05-15 15:02:47 -07:00
Andy Hanson
38784b761a
Support for JSDoc in services
2017-05-15 14:45:30 -07:00
Arthur Ozga
d8f29a5fe8
update tests
2017-05-15 12:42:28 -07:00
Nathan Shively-Sanders
cefcc668a8
Correct test argument in callwithSpread2
2017-05-15 10:55:58 -07:00
Nathan Shively-Sanders
4c80aa17b3
Clean up comments in tests
2017-05-15 10:38:51 -07:00
Andy
687ab54d17
Merge pull request #15846 from Microsoft/findAllRefs_symbolNoName
...
findAllReferences: In `export default foo`, symbol name is `foo`
2017-05-15 10:38:21 -07:00
Nathan Shively-Sanders
b61eaf70a1
Inline function that is called once
2017-05-15 10:31:47 -07:00
Nathan Shively-Sanders
9ba0668afa
Test:spread array after required params
2017-05-15 10:20:28 -07:00
Arthur Ozga
20a4e32bec
parenthesization in factory
2017-05-15 10:19:00 -07:00
Nathan Shively-Sanders
26416c32f3
Allow spreading arrays after required parameters
...
This allows:
1. Spreading arrays into all-optional parameters whose types match.
2. Spreading arrays into parameter lists that are too short and whose
body presumably uses `arguments`.
2017-05-15 10:17:36 -07:00
Andy
278fb803b1
Merge pull request #15781 from Microsoft/inline
...
Inline resolvedModuleFromResolved
2017-05-15 09:51:01 -07:00
Nathan Shively-Sanders
fceb897f75
Merge pull request #15843 from DickvdBrink/issue-15828
...
Allow const enum to be used before declaration
2017-05-15 09:06:08 -07:00
Andy Hanson
5eb2bd08ac
findAllReferences: In export default foo
, symbol name is foo
2017-05-15 08:34:05 -07:00
Dick van den Brink
0cd2245c9a
Accept baselines for const enum changes
2017-05-15 14:57:24 +02:00