Skip to content

Commit c89febe

Browse files
Added completion check for prefix-unary, binary, and conditional expressions.
1 parent 34a3fc4 commit c89febe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/services/utilities.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ module ts {
154154
}
155155
return isCompletedNode((<DoStatement>n).statement, sourceFile);
156156

157+
case SyntaxKind.PrefixUnaryExpression:
158+
return isCompletedNode(<PrefixUnaryExpression>n, sourceFile);
159+
case SyntaxKind.BinaryExpression:
160+
return isCompletedNode((<BinaryExpression>n).right, sourceFile);
161+
case SyntaxKind.ConditionalExpression:
162+
return isCompletedNode((<ConditionalExpression>n).whenFalse, sourceFile);
163+
157164
default:
158165
return true;
159166
}

0 commit comments

Comments
 (0)