list_type.ex (456B)
1 defmodule Absinthe.Language.ListType 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.loc_t() 12 } 13 14 defimpl Blueprint.Draft do 15 def convert(node, doc) do 16 %Blueprint.TypeReference.List{ 17 of_type: Absinthe.Blueprint.Draft.convert(node.type, doc) 18 } 19 end 20 end 21 end