Crate ra_ap_span

source ·
Expand description

File and span related types.

Structs

  • Handle to a file in Vfs
  • Input to the analyzer is a set of files, where each file is identified by FileId and contains source code. However, another source of source code in Rust are macros: each macro can be thought of as producing a “temporary file”. To assign an id to such a file, we use the id of the macro call that produced the file. So, a HirFileId is either a FileId (source code written by user), or a MacroCallId (source code produced by macro).
  • MacroCallId identifies a particular macro invocation, like println!("Hello, {}", world).
  • Maps absolute text ranges for the corresponding file to the relevant span data.
  • A range in text, represented as a pair of TextSize.
  • A measure of text length. Also, equivalently, an index into text.

Enums

Constants

Type Aliases