Namespace
Raven.Macros
namespace Raven.Macros
Compile-time macros for quoting syntax, compiling source, embedding files, and generating code through the Raven compiler API.
Macros
9 items
Compile
Quotes a Raven expression and compiles it into the requested delegate type.
EmbedFileContent
Embeds the UTF-8 text content of a file as a string literal.
Error
Derives Raven's standard error contract for a union.
ErrorMessage
Supplies the message for one case of a union derived with `#[Error]`.
Json
Constructs a `System.Text.Json.Nodes.JsonObject` from JSON-shaped source.
Quote
Quotes a Raven expression as an immutable Raven syntax tree.
Sha256Digest
Computes the SHA-256 digest of a literal value during compilation.
Timer
Measures an ordinary Raven block body with `System.Diagnostics.Stopwatch` and writes the elapsed duration. An optional message template uses `{time}` for the elapsed duration while…
Xml
Constructs a `System.Xml.Linq.XElement` from XML-shaped source.