Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
visitor = new TypescriptVisitor();
break;
case 'Java':
visitor = new JavaVisitor();
break;
case 'JSONSchema':
visitor = new JSONSchemaVisitor();
break;
case 'XMLSchema':
visitor = new XmlSchemaVisitor();
break;
}
if(visitor) {
let parameters = {};
parameters.fileWriter = new FileWriter(output);
modelManager.accept(visitor, parameters);
return `Compiled to ${target} in '${output}'.`;
}
else {
return 'Unrecognized target: ' + target;
}
}