def get_types(parsed_package):
    """
    Get a list of all types defined in the parsed package.
    """
    types = (parsed_package.enumeration_types + parsed_package.record_types +
        parsed_package.array_types + parsed_package.subtypes)
    return types
