icerpc / slicec

The Slice compiler library
Apache License 2.0
13 stars 5 forks source link

Restructure validation #566

Closed externl closed 1 year ago

externl commented 1 year ago

This PR restructures the way validation is done in slicec. If removes the Validator and ValidationChain in favor or simple functions.

The original though was that we would need a more complex validation chain, but that turned out not to be the case.

This is phase 1. Phase 2 is to improve the type_ref validation to use a visitor and consider merging several of the validation visitors together.