Class CoverageFinalizeInstr
java.lang.Object
org.ek9lang.compiler.ir.instructions.IRInstr
org.ek9lang.compiler.ir.instructions.CoverageFinalizeInstr
- All Implemented Interfaces:
INode
Specialized IR instruction for coverage finalization (COVERAGE_FINALIZE).
This instruction is emitted in the entry point's shutdown hook or finally block. It triggers the coverage runtime to:
- Collect all probe data from registered modules
- Serialize coverage counters to .ek9covcounter.json files
- Optionally merge with existing coverage data
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(INodeVisitor visitor) static CoverageFinalizeInstrCreate a coverage finalize instruction with explicit output path.static CoverageFinalizeInstrCreate a coverage finalize instruction with default output path.Get the output path for coverage data.toString()booleanCheck if this instruction uses the default output path.Methods inherited from class IRInstr
addOperand, addOperands, equals, getDebugInfo, getEscapeMetaData, getOpcode, getOperands, getResult, hasEscapeMetaData, hashCode, hasResult, isControlFlow, isLabel, isMemoryManagement, isMethodCall, setEscapeMetaData
-
Method Details
-
finalize
Create a coverage finalize instruction with default output path.- Parameters:
debugInfo- Optional source location debug info
-
finalize
Create a coverage finalize instruction with explicit output path.- Parameters:
outputPath- Path to write coverage data (null for default .ek9/ directory)debugInfo- Optional source location debug info
-
getOutputPath
Get the output path for coverage data.- Returns:
- The output path, or null for default
-
usesDefaultPath
public boolean usesDefaultPath()Check if this instruction uses the default output path. -
accept
-
toString
-