use existing util functions

This commit is contained in:
Benjamin Lichtman
2018-12-31 15:56:54 -08:00
parent bb2f300191
commit 048d04684b
2 changed files with 6 additions and 4 deletions
+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);