Skip to content

Commit

Permalink
rename print node and move instantiation inside function
Browse files Browse the repository at this point in the history
  • Loading branch information
uittorio committed Jan 13, 2020
1 parent 9e16583 commit 77bd8e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformer/log.ts → src/transformer/printNode.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as ts from 'typescript';
import { Logger } from '../logger/logger';
import { ILogger } from '../logger/logger.interface';
const PrintNodeLogger: ILogger = Logger('PrintNode');

export function PrintNode(node: ts.Node): void {
const PrintNodeLogger: ILogger = Logger('PrintNode');

const resultFile: ts.SourceFile = ts.createSourceFile('someFileName.ts', '', ts.ScriptTarget.Latest, /*setParentNodes*/ false, ts.ScriptKind.TS);
const printer: ts.Printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed });

Expand Down

0 comments on commit 77bd8e2

Please sign in to comment.