Interface ICompilationStage
Description
The implementation will be invoked when compiling the source code mentioned in a record.
Methods
Compile source code
Signature
Task<CompilationResult> CompileAsync(string directoryPath, string sourceCode, bool enableOptimization, bool warningAsError);
Parameters
directoryPath: string
: The path to the directory where the record should be processed in.sourceCode: string
: The source code to be compiled.enableOptimization: bool
: A flag indicating whether optimization should be enabled during compilation.warningAsError: bool
: A flag indicating whether warnings should be treated as errors during compilation.
Usage
Invoked when there's a record to compile.
Set logger
Signature
void SetLogger(ILogger logger);
Parameters
logger: ILogger
: The logger for the plugin generated by Executor.
Usage
Invoked once the implementation instance being created.