gleamgen/source

Types

pub type Source {
  Source(content: List(String), location: Int)
}

Constructors

  • Source(content: List(String), location: Int)
pub type SourceMapped(a) {
  SourceMapped(contents: a, source: Source)
}

Constructors

  • SourceMapped(contents: a, source: Source)

Values

pub fn get_function_body(
  function: SourceMapped(glance.Function),
) -> List(SourceMapped(glance.Statement))
pub fn module_from_string(
  input: String,
) -> Result(SourceMapped(glance.Module), glance.Error)
Search Document