dsldevkit / dsl-devkit

Developer kit for implementing Domain Specific Languages with Xtext. Format, Check, Export and Scope languages of DSL Developer Kit standardize DSL implementations.
https://ddk.tools.avaloq.com
Eclipse Public License 1.0
42 stars 28 forks source link

feat: order instanceof checks hierarchically #975

Closed hasu closed 1 month ago

hasu commented 1 month ago

That is, reduce the number of 'instanceof' conditions needing evaluating in check catalog dispatch logic by having the generator make use of knowledge about supertype relationships. If it's not an instance of a more general type, then no need to check for something specific.