intel/dml-language-server

Implement constant-folding of expressions

JonatanWaern opened this issue · 0 comments

The ability to, for at least simple expressions, evaluate their values if they are constant or based only on constant-valued parameters.

Enable us to resolve expressions, hopefully to the same extent and with the same rules as dmlc.

  • Needed for detecting/discarding more complicated name collisions around #if
  • Needed to report semantic errors around constant/non-constant values
  • Useful to preview calculated values of constant parameters on-hover
  • Needs to consider that some parameters are set from command-line/dmlc