Added helper property to check if enum entries are flags.
Fixed some comments.
Extract the declaration sorting into its own pass.
Added a pretty simple diagnostic system so we can provide improved diagnostics to clients.
Added an interface to represent type printing.
Clean up unneeded usings.
Implement missing visitor methods.