Changeset 14168


Ignore:
Timestamp:
Nov 25, 2019 2:12:27 PM (3 weeks ago)
Author:
molsson
Message:

#5843 Added modelTransformed hook to UtilInterface.Interfacer.

Location:
branches/dev-mo-2612/Compiler
Files:
3 edited

Legend:

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

    r13980 r14168  
    300300            hooks.modelTransformed(this, fc);
    301301        }
     302        fc.root().getUtilInterface().modelTransformed(fc);
    302303    }
    303304   
  • branches/dev-mo-2612/Compiler/ModelicaCompiler/src/jastadd/UtilInterface.jrag

    r13732 r14168  
    3737             */
    3838            public void modelInstantiated(InstClassDecl icd) {}
     39           
     40            /**
     41             * Called after model has been flattened and transformed.
     42             */
     43            public void modelTransformed(FClass fc) {}
    3944           
    4045            /**
     
    146151    }
    147152   
     153    public void UtilInterface.modelTransformed(FClass fc) {
     154        for (Interfacer interfacer : interfacers) {
     155            interfacer.modelTransformed(fc);
     156        }
     157    }
     158   
    148159    public void UtilInterface.packFmu(FClass fc, Path outDir) {
    149160        for (Interfacer interfacer : interfacers) {
  • branches/dev-mo-2612/Compiler/TestFramework/src/jastadd/TestCase.jrag

    r13396 r14168  
    632632        try {
    633633            fc.transformCanonical();
     634            uif.modelTransformed(fc);
    634635            fc.errorCheck(checkType);
    635636            problems = fc.collectWarnings();
Note: See TracChangeset for help on using the changeset viewer.