How to identify lowerings for increment operations or find the source location correctly? #55691
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
cfe-encodings
Encoding related CFE issues.
In the kernel AST for the following code the various forms of incrementing a variable all result in a similar AST structure. If you inspect the
.location
of eachVariableSet
node, all point the the source location of thei
.This difficulty with this is that I can't tell when the
VariableSet
came from a lowering of++i
and map the location correctly when compiling the JavaScript in DDC. Is there a way to identify these lowerings? Would it make sense if theVariableSet
node pointed to the beginning of the prefix instead?cc @johnniwinther
The text was updated successfully, but these errors were encountered: