Check if a type is a union.
Visit an union and create a pattern match expression of each union type.
Unit
Visit an union and create a pattern match term of each union type.