zf

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

types.ex (523B)


      1 defmodule EarmarkParser.Types do
      2 
      3   @moduledoc false
      4 
      5   defmacro __using__(_options \\ []) do
      6     quote do
      7       @type token  :: {atom, String.t}
      8       @type tokens :: list(token)
      9       @type numbered_line :: %{required(:line) => String.t, required(:lnb) => number}
     10       @type message_type :: :warning | :error
     11       @type message :: {message_type, number, String.t}
     12       @type maybe(t) :: t | nil
     13       @type inline_code_continuation :: {nil | String.t, number}
     14     end
     15   end
     16 
     17 end
     18 
     19 # SPDX-License-Identifier: Apache-2.0