dagger/dsl/source_map

Values

pub fn column(
  parent: types.SourceMap,
  client client: types.Client,
  then handler: fn(Result(Int, types.QueryError)) -> a,
) -> a

The column number within the line.

pub fn filename(
  parent: types.SourceMap,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

The filename from the module source.

pub fn id(parent: types.SourceMap) -> types.SourceMap

A unique identifier for this SourceMap.

pub fn line(
  parent: types.SourceMap,
  client client: types.Client,
  then handler: fn(Result(Int, types.QueryError)) -> a,
) -> a

The line number within the filename.

pub fn module(
  parent: types.SourceMap,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

The module dependency this was declared in.

pub fn url(
  parent: types.SourceMap,
  client client: types.Client,
  then handler: fn(Result(String, types.QueryError)) -> a,
) -> a

The URL to the file, if any. This can be used to link to the source map in the browser.

Search Document