dagger/dsl/search_result
Values
pub fn absolute_offset(
parent: types.SearchResult,
client client: types.Client,
then handler: fn(Result(Int, types.QueryError)) -> a,
) -> a
The byte offset of this line within the file.
pub fn file_path(
parent: types.SearchResult,
client client: types.Client,
then handler: fn(Result(String, types.QueryError)) -> a,
) -> a
The path to the file that matched.
pub fn id(parent: types.SearchResult) -> types.SearchResult
A unique identifier for this SearchResult.
pub fn line_number(
parent: types.SearchResult,
client client: types.Client,
then handler: fn(Result(Int, types.QueryError)) -> a,
) -> a
The first line that matched.
pub fn matched_lines(
parent: types.SearchResult,
client client: types.Client,
then handler: fn(Result(String, types.QueryError)) -> a,
) -> a
The line content that matched.
pub fn search_result(
id id: types.SearchResult,
) -> types.SearchResult
pub fn submatches(
parent: types.SearchResult,
select select: fn(types.SearchSubmatch) -> List(types.Field),
client client: types.Client,
then handler: fn(
Result(List(types.SearchSubmatch), types.QueryError),
) -> a,
) -> a
Sub-match positions and content within the matched lines.