File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1769,9 +1769,13 @@ namespace ts.Completions {
1769
1769
}
1770
1770
1771
1771
function isEqualityExpression ( node : Node ) : node is BinaryExpression {
1772
- return isBinaryExpression ( node ) && ( node . operatorToken . kind == SyntaxKind . EqualsEqualsToken ||
1773
- node . operatorToken . kind === SyntaxKind . ExclamationEqualsToken ||
1774
- node . operatorToken . kind === SyntaxKind . EqualsEqualsEqualsToken ||
1775
- node . operatorToken . kind === SyntaxKind . ExclamationEqualsEqualsToken ) ;
1772
+ return isBinaryExpression ( node ) && isEqualityOperatorKind ( node . operatorToken . kind ) ;
1773
+ }
1774
+
1775
+ function isEqualityOperatorKind ( kind : SyntaxKind ) {
1776
+ return kind == SyntaxKind . EqualsEqualsToken ||
1777
+ kind === SyntaxKind . ExclamationEqualsToken ||
1778
+ kind === SyntaxKind . EqualsEqualsEqualsToken ||
1779
+ kind === SyntaxKind . ExclamationEqualsEqualsToken ;
1776
1780
}
1777
1781
}
You can’t perform that action at this time.
0 commit comments