Skip to content

Commit 1cde0c1

Browse files
WIP
1 parent ba50c36 commit 1cde0c1

File tree

5 files changed

+189
-376
lines changed

5 files changed

+189
-376
lines changed

Plugins/BridgeJS/Sources/TS2Swift/JavaScript/src/cli.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-check
22
import * as fs from 'fs';
3-
import { TypeProcessor, renderMacroSwift } from './processor.js';
3+
import { TypeProcessor } from './processor.js';
44
import { parseArgs } from 'util';
55
import ts from 'typescript';
66
import path from 'path';
@@ -139,10 +139,7 @@ export function main(args) {
139139
}
140140

141141
const processor = new TypeProcessor(program.getTypeChecker(), diagnosticEngine);
142-
const results = processor.processTypeDeclarations(program, filePath);
143-
144-
// Skip writing file if there's nothing to import
145-
const { content: swiftOutput, hasAny } = renderMacroSwift(results);
142+
const { content: swiftOutput, hasAny } = processor.processTypeDeclarations(program, filePath);
146143

147144
if (options.values.output) {
148145
if (hasAny) {

0 commit comments

Comments
 (0)