use existing util functions

This commit is contained in:
Benjamin Lichtman committed 2018-12-31 15:56:54 -08:00
1 parent bb2f300191
commit 048d04684b
2 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -2121,7 +2121,7 @@ namespace ts {
: undefined;
}
function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node: Node): Expression | undefined {
export function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node: Node): Expression | undefined {
switch (node.kind) {
case SyntaxKind.VariableStatement:
const v = getSingleVariableOfVariableStatement(node);