Class CoverageDisplayName
java.lang.Object
org.ek9lang.compiler.phase7.generator.CoverageDisplayName
Resolves the user-facing display name for a function/method symbol used in
coverage and quality reports.
Three cases are handled:
- Synthetic methods (
_main,_call,i_init,c_init, etc.) — show the enclosing scope name. This makes a program's_mainrender as the program name, a dynamic function's_callrender as the dynamic function's name, and so on. - Regular methods/operators on an aggregate (class, trait,
component, record, service) — prefix the method name with the aggregate
name. Renders as
Newt.move,ASimpleClass.aCheck,Walker.?. This distinguishes methods from module-level free functions in coverage report listings. - Module-level free functions — show the bare function name with no prefix.
Used by every IR generator that registers function entries with
CoverageProbePlacer: OperationDfnGenerator,
AggregateDfnGenerator, ServiceDfnGenerator,
TextDfnGenerator.
-
Method Summary
-
Method Details
-
forSymbol
-