Changeset 13681


Ignore:
Timestamp:
Oct 7, 2019 12:35:58 PM (2 months ago)
Author:
molsson
Message:

#5843 Extracted calls to templates.generate*Files() to a separate method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mo-2265/Compiler/ModelicaCompiler/src/jastadd/ModelicaCompiler.jrag

    r13673 r13681  
    13691369        ASTNode.beginStep("generateCode()");
    13701370        log.info("Generating code...");
     1371       
    13711372        String name = fc.nameUnderscore();
    1372        
    13731373        Templates templates = target.getTemplates(getOptions());
    1374    
    1375         templates.generateCFiles(this, fc, createCGenerator(fc), sourceDir, name);
    1376         templates.generateXMLFiles(this, fc, target.getXMLGenerator(fc), outDir, "modelDescription");
     1374       
     1375        generateAllFiles(fc, target, templates, name);
    13771376        hookCodeGenerated(fc, outDir);
    13781377       
     
    22832282        return dest;
    22842283    }
     2284   
     2285    private void ModelicaCompiler.generateAllFiles(FClass fc, TargetObject target, Templates templates, String name)
     2286            throws FileNotFoundException {
     2287        templates.generateCFiles(this, fc, createCGenerator(fc), sourceDir, name);
     2288        templates.generateXMLFiles(this, fc, target.getXMLGenerator(fc), outDir, "modelDescription");
     2289    }
    22852290
    22862291}
Note: See TracChangeset for help on using the changeset viewer.