We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7e2aa commit ec0eabbCopy full SHA for ec0eabb
1 file changed
src/compiler/parser.ts
@@ -1937,7 +1937,7 @@ namespace ts {
1937
return finishNode(node);
1938
}
1939
1940
- function parseTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode {
+ function parseThisTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode {
1941
nextToken();
1942
const node = createNode(SyntaxKind.TypePredicate, lhs.pos) as TypePredicateNode;
1943
node.parameterName = lhs;
@@ -2362,7 +2362,7 @@ namespace ts {
2362
case SyntaxKind.ThisKeyword: {
2363
const thisKeyword = parseThisTypeNode();
2364
if (token === SyntaxKind.IsKeyword && !scanner.hasPrecedingLineBreak()) {
2365
- return parseTypePredicate(thisKeyword);
+ return parseThisTypePredicate(thisKeyword);
2366
2367
else {
2368
return thisKeyword;
0 commit comments