data CompileError
The error of a plugin: a diagnostic of the plugin's rule at at.
Example:
use std.comptime { Decl, CompileError }
comptime fn no_fixme(d: Decl) -> () | CompileError {
if d.name.contains("fixme") {
return CompileError{ at: d.span, message: "rename {d.name}" }
}
}@error
pub(api) data CompileErrorС версии. 1.0.0-beta
Поля
pub(api) at: Span | Where the diagnostic is reported. |
pub(api) message: str | The text of the diagnostic. |
Определено в: std/comptime/comptime.oxl:179