File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1659,8 +1659,9 @@ namespace ts.Completions {
1659
1659
1660
1660
function isContextTokenValueLocation ( contextToken : Node ) {
1661
1661
return contextToken &&
1662
- contextToken . kind === SyntaxKind . TypeOfKeyword &&
1663
- ( contextToken . parent . kind === SyntaxKind . TypeQuery || isTypeOfExpression ( contextToken . parent ) ) ;
1662
+ ( ( contextToken . kind === SyntaxKind . TypeOfKeyword &&
1663
+ ( contextToken . parent . kind === SyntaxKind . TypeQuery || isTypeOfExpression ( contextToken . parent ) ) ) ||
1664
+ ( contextToken . kind === SyntaxKind . AssertsKeyword && contextToken . parent . kind === SyntaxKind . TypePredicate ) ) ;
1664
1665
}
1665
1666
1666
1667
function isContextTokenTypeLocation ( contextToken : Node ) : boolean {
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ ////declare function assert(argument1: any): asserts a/**/
4
+
5
+ verify . completions ( {
6
+ marker : "" ,
7
+ includes : { name : "argument1" }
8
+ } ) ;
You can’t perform that action at this time.
0 commit comments