Class SymbolHarvester

java.lang.Object
org.ek9lang.compiler.fuzz.SymbolHarvester

public final class SymbolHarvester extends Object
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.

  • Constructor Details

  • Method Details

    • harvest

      public SymbolHarvester.HarvestResult harvest(File sourceFile)
      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

      public SymbolHarvester.HarvestResult harvestFromSource(String source, String filename)
      Harvest testable surfaces from EK9 source text.
      Parameters:
      source - the EK9 source code
      filename - the filename for error reporting
      Returns:
      the harvest result, or null if compilation fails