Current section

Files

Jump to
opencode_sdk lib opencode generated file_content_patch_hunks.ex
Raw

lib/opencode/generated/file_content_patch_hunks.ex

defmodule OpenCode.Generated.FileContentPatchHunks do
@moduledoc """
Provides struct and type for a FileContentPatchHunks
"""
@type t :: %__MODULE__{
lines: [String.t()],
new_lines: integer,
new_start: integer,
old_lines: integer,
old_start: integer
}
defstruct [:lines, :new_lines, :new_start, :old_lines, :old_start]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
lines: [:string],
new_lines: :integer,
new_start: :integer,
old_lines: :integer,
old_start: :integer
]
end
end