Module tvix_eval::spans

source ·
Expand description

Utilities for dealing with span tracking in the compiler and in error reporting.

Macros§

  • Generates a ToSpan implementation for a type implementing rowan::AstNode. This is impossible to do as a blanket implementation because rustc forbids these implementations for traits from third-party crates due to a belief that semantic versioning truly could work (it doesn’t).

Structs§

  • A placeholder ToSpan implementation covering the entire source file.
  • A placeholder ToSpan implementation which falls back to the entire file if its wrapped value is None

Traits§

  • Trait implemented by all types from which we can retrieve a span.