zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

non_null_type.ex (449B)


      1 defmodule Absinthe.Language.NonNullType do
      2   @moduledoc false
      3 
      4   alias Absinthe.{Blueprint, Language}
      5 
      6   defstruct type: nil,
      7             loc: %{line: nil}
      8 
      9   @type t :: %__MODULE__{
     10           type: Language.type_reference_t(),
     11           loc: Language.t()
     12         }
     13 
     14   defimpl Blueprint.Draft do
     15     def convert(node, doc) do
     16       %Blueprint.TypeReference.NonNull{
     17         of_type: Blueprint.Draft.convert(node.type, doc)
     18       }
     19     end
     20   end
     21 end