use of io.crnk.gen.typescript.model.TSNamedElement in project crnk-framework by crnk-project.
the class TSImportProcessor method processType.
private static void processType(TSSource source, TSNamedElement type) {
TSSource refSource = getSource(type);
// no need for inclusions of primitive types and within same file
if (!(type instanceof TSPrimitiveType || source == refSource)) {
TSNamedElement importedType = type;
if (type.getParent() instanceof TSModule) {
importedType = (TSNamedElement) type.getParent();
}
addImport(refSource, source, importedType);
}
}
Aggregations