Type Definition papyri_lang::errors::StackTrace

source ·
pub type StackTrace = Box<[DiagSourceRange]>;
Expand description

Represents a stack trace, which is associated with a diagnostic.

Each line in the trace is a pair of (name, pos), where a function with that name was called at that source position. The source position for the direct cause of the diagnostic is held in the Diagnostic struct. The pairs are in order from least recent to most recent.