From 030ab145d61184d14c444851b48b3219c4d5895f Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Thu, 30 Mar 2017 14:40:51 +0200 Subject: [PATCH] Add return types --- src/parsers/abstract-ast.parser.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/parsers/abstract-ast.parser.ts b/src/parsers/abstract-ast.parser.ts index 3d60359..7e30562 100644 --- a/src/parsers/abstract-ast.parser.ts +++ b/src/parsers/abstract-ast.parser.ts @@ -48,7 +48,11 @@ export abstract class AbstractAstParser { }, initialValue); } - protected _printAllChildren(sourceFile: ts.SourceFile, node: ts.Node, depth = 0) { + protected _syntaxKindToName(kind: ts.SyntaxKind): string { + return ts.SyntaxKind[kind]; + } + + protected _printAllChildren(sourceFile: ts.SourceFile, node: ts.Node, depth = 0): void { console.log( new Array(depth + 1).join('----'), `[${node.kind}]`, @@ -62,8 +66,4 @@ export abstract class AbstractAstParser { node.getChildren(sourceFile).forEach(childNode => this._printAllChildren(sourceFile, childNode, depth)); } - protected _syntaxKindToName(kind: ts.SyntaxKind) { - return ts.SyntaxKind[kind]; - } - }