zf

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

named_type.ex (399B)


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