Skip to content

GenCompilationError

1 min read

Import: import system.codegen;

GenCompilationError

A diagnostic associated with a declaration in the generator's input.

public class GenCompilationError: Error

target

Target declaration or build target associated with this result.

public target: string

code

Returns EGENERATE, the code shared by every generator input diagnostic.

public fun code(): string

message

Returns the compiler's explanation of the failure in target.

public fun message(): string