Dagger.SourceMap (dagger v0.18.16)

View Source

Source location information.

Summary

Functions

The column number within the line.

The filename from the module source.

A unique identifier for this SourceMap.

The line number within the filename.

The module dependency this was declared in.

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

Types

t()

@type t() :: %Dagger.SourceMap{client: term(), query_builder: term()}

Functions

column(source_map)

@spec column(t()) :: {:ok, integer()} | {:error, term()}

The column number within the line.

filename(source_map)

@spec filename(t()) :: {:ok, String.t()} | {:error, term()}

The filename from the module source.

id(source_map)

@spec id(t()) :: {:ok, Dagger.SourceMapID.t()} | {:error, term()}

A unique identifier for this SourceMap.

line(source_map)

@spec line(t()) :: {:ok, integer()} | {:error, term()}

The line number within the filename.

module(source_map)

@spec module(t()) :: {:ok, String.t()} | {:error, term()}

The module dependency this was declared in.

url(source_map)

@spec url(t()) :: {:ok, String.t()} | {:error, term()}

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