Skip to main content

stylex_panic_with_context

Macro stylex_panic_with_context 

Source
macro_rules! stylex_panic_with_context {
    ($expr:expr, $state:expr, $msg:expr) => { ... };
}
Expand description

Panic with a [StyleX]-prefixed code frame error.

Wraps the expression in a ParenExpr and delegates to build_code_frame_error_and_panic which produces a source-located [StyleX] <message> diagnostic on stderr before panicking.

§Usage

stylex_panic_with_context!(path, traversal_state, "Unary expression not implemented");

§Arguments

  • $expr: The expression to wrap and report
  • $state: State manager for error context
  • $msg: Error message string