Sha256: 8790f01577fe84a049e5574872c2f872bac3660678c1a77ca7127f92399c9a77
Contents?: true
Size: 660 Bytes
Versions: 26
Compression:
Stored size: 660 Bytes
Contents
Foobara.require_project_file("type_declarations", "desugarizer") module Foobara module TypeDeclarations module Handlers class RegisteredTypeDeclaration < TypeDeclarationHandler # TODO: make a quick way to convert a couple simple procs into a transformer class TypeDesugarizer < TypeDeclarations::Desugarizer def applicable?(sugary_type_declaration) sugary_type_declaration.is_a?(Types::Type) end def desugarize(type) type.reference_or_declaration_data end def priority Priority::FIRST - 1 end end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems