Class SymbolHarvester
java.lang.Object
org.ek9lang.compiler.fuzz.SymbolHarvester
Harvests testable surfaces (public constructors, methods, operators) from a compiled
EK9 source file. Compiles the source through PRE_IR_CHECKS to populate the symbol
table, then extracts type information suitable for test generation.
Reuses the harvest record types from TemplateProbeGenerator for consistency
with the existing fuzzer infrastructure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of harvesting: module name, source text, all harvested types and functions. -
Constructor Summary
ConstructorsConstructorDescriptionSymbolHarvester(SharedThreadContext<CompilableProgram> sharedContext, FileHandling fileHandling, CompilerReporter compilerReporter) -
Method Summary
Modifier and TypeMethodDescriptionHarvest testable surfaces from an EK9 source file.harvestFromSource(String source, String filename) Harvest testable surfaces from EK9 source text.
-
Constructor Details
-
Method Details
-
harvest
Harvest testable surfaces from an EK9 source file.- Parameters:
sourceFile- the .ek9 file to analyze- Returns:
- the harvest result, or null if compilation fails
-
harvestFromSource
Harvest testable surfaces from EK9 source text.- Parameters:
source- the EK9 source codefilename- the filename for error reporting- Returns:
- the harvest result, or null if compilation fails
-