Add return types
This commit is contained in:
		| @@ -48,7 +48,11 @@ export abstract class AbstractAstParser { | |||||||
| 		}, initialValue); | 		}, 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( | 		console.log( | ||||||
| 			new Array(depth + 1).join('----'), | 			new Array(depth + 1).join('----'), | ||||||
| 			`[${node.kind}]`, | 			`[${node.kind}]`, | ||||||
| @@ -62,8 +66,4 @@ export abstract class AbstractAstParser { | |||||||
| 		node.getChildren(sourceFile).forEach(childNode => this._printAllChildren(sourceFile, childNode, depth)); | 		node.getChildren(sourceFile).forEach(childNode => this._printAllChildren(sourceFile, childNode, depth)); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	protected _syntaxKindToName(kind: ts.SyntaxKind) { |  | ||||||
| 		return ts.SyntaxKind[kind]; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user