Skip to content

Commit ec0eabb

Browse files
Minor rename.
1 parent 7c7e2aa commit ec0eabb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/compiler/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ namespace ts {
19371937
return finishNode(node);
19381938
}
19391939

1940-
function parseTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode {
1940+
function parseThisTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode {
19411941
nextToken();
19421942
const node = createNode(SyntaxKind.TypePredicate, lhs.pos) as TypePredicateNode;
19431943
node.parameterName = lhs;
@@ -2362,7 +2362,7 @@ namespace ts {
23622362
case SyntaxKind.ThisKeyword: {
23632363
const thisKeyword = parseThisTypeNode();
23642364
if (token === SyntaxKind.IsKeyword && !scanner.hasPrecedingLineBreak()) {
2365-
return parseTypePredicate(thisKeyword);
2365+
return parseThisTypePredicate(thisKeyword);
23662366
}
23672367
else {
23682368
return thisKeyword;

0 commit comments

Comments
 (0)