lib/gen_lsp/protocol/structures/reference_context.ex

# codegen: do not edit
defmodule GenLSP.Structures.ReferenceContext do
  @moduledoc """
  Value-object that contains additional information when
  requesting references.
  """

  import Schematic, warn: false

  use TypedStruct

  @doc """
  ## Fields

  * include_declaration: Include the declaration of the current symbol.
  """
  @derive Jason.Encoder
  typedstruct do
    field :include_declaration, boolean(), enforce: true
  end

  @doc false
  @spec schematic() :: Schematic.t()
  def schematic() do
    schema(__MODULE__, %{
      {"includeDeclaration", :include_declaration} => bool()
    })
  end
end