Dagger.SearchResult (dagger v0.19.4)

View Source

Dagger.SearchResult

Summary

Functions

The byte offset of this line within the file.

The path to the file that matched.

A unique identifier for this SearchResult.

The first line that matched.

The line content that matched.

Sub-match positions and content within the matched lines.

Types

t()

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

Functions

absolute_offset(search_result)

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

The byte offset of this line within the file.

file_path(search_result)

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

The path to the file that matched.

id(search_result)

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

A unique identifier for this SearchResult.

line_number(search_result)

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

The first line that matched.

matched_lines(search_result)

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

The line content that matched.

submatches(search_result)

@spec submatches(t()) :: {:ok, [Dagger.SearchSubmatch.t()]} | {:error, term()}

Sub-match positions and content within the matched lines.