Skip to content

Commit

Permalink
HIR Serialise - Deserialise extern type
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Mar 3, 2019
1 parent 90d8283 commit 8777573
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/hir/deserialise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,13 @@
}
}

::HIR::ExternType deserialise_externtype()
{
return ::HIR::ExternType {
deserialise_markings()
};
}

::HIR::TypeItem deserialise_typeitem()
{
switch(auto tag = m_in.read_tag())
Expand All @@ -557,6 +564,8 @@
return ::HIR::TypeItem( deserialise_trait() );
case 6:
return ::HIR::TypeItem( deserialise_union() );
case 7:
return ::HIR::TypeItem( deserialise_externtype() );
default:
BUG(Span(), "Bad tag for HIR::TypeItem - " << tag);
}
Expand Down

0 comments on commit 8777573

Please sign in to comment.