lib/gen_lsp/protocol/structures/inline_value_text.ex

# codegen: do not edit
defmodule GenLSP.Structures.InlineValueText do
  @moduledoc """
  Provide inline value as text.

  @since 3.17.0
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * range: The document range for which the inline value applies.
  * text: The text of the inline value.
  """
  @derive Jason.Encoder
  typedstruct do
    field :range, GenLSP.Structures.Range.t(), enforce: true
    field :text, String.t(), enforce: true
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      {"range", :range} => GenLSP.Structures.Range.schematic(),
      {"text", :text} => str()
    })
  end
end