Ignore:
Timestamp:
Nov 8, 2019 10:26:29 AM (5 weeks ago)
Author:
jwedin
Message:

Removed the unused interface NodeCountExtra. Updated the documentation for the node count functionality. #5865

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-jw-2590/Compiler/ModelicaMiddleEnd/src/jastadd/Profiling.jrag

    r13986 r13998  
    401401    }
    402402
    403     private static NodeCountExtra[] ASTNode.nodeCountExtra = new NodeCountExtra[] { };
    404 
    405     public interface NodeCountExtra {
    406         public void count(ASTNode n);
    407         public void printResult(CodeStream out);
    408     }
    409 
    410403    /**
    411404     * Output a list of the number of instances of each node class.
     
    419412        for (ASTNodeCounter c : list)
    420413            out.println(c);
    421         for (NodeCountExtra nce : nodeCountExtra)
    422             nce.printResult(out);
    423414        out.close();
    424415    }
     
    426417    public void ASTNode.buildNodeCount(Map<Class,ASTNodeCounter> map) {
    427418        addToNodeCount(map, getClass(), Profiler.getNodeSize(this, false), Profiler.getNodeSize(this, true));
    428         for (NodeCountExtra nce : nodeCountExtra)
    429             nce.count(this);
    430419       
    431420        for (ASTNode n : profilingChildren())
Note: See TracChangeset for help on using the changeset viewer.