Crate solar_interface

Source
Expand description

§solar-interface

Source positions, diagnostics, and related helper functions.

Important concepts in this module include:

  • the span, represented by Span and related types;
  • source code as represented by a SourceMap; and
  • interned strings, represented by Symbols, with some common symbols available statically in the sym module.

Re-exports§

Modules§

  • Diagnostics implementation.
  • This module contains all the defined keyword Symbols.
  • Functions for installing a custom panic hook.
  • SourceMap related types and operations.
  • This module contains all the defined non-keyword Symbols.

Macros§

  • Used for creating an error code. The input must be exactly 4 decimal digits.
  • Pluralize a word based on a count.

Structs§

Enums§

Constants§

  • The current version of the Solar compiler.

Traits§

Functions§

  • Like std::fs::canonicalize(), but on Windows it outputs the most compatible form of a path instead of UNC.
  • Creates new session globals on the current thread if they doesn’t exist already and then executes the given closure.

Type Aliases§