Hi, everyone. I have a couple of questions about c...
# compiler
a
Hi, everyone. I have a couple of questions about compiler plugins. 1. Is there any way to uniquely identify function calls so that the identifier is not changeable until the place of the function call changes? 2. Is it possible to get information about previous compilations during incremental compilation?
t
Hi! As for the first, you can use the start offset. This is the actual character offset of the function call in the source code file. This might change even if a comment is modified, so you have to count on that. The IrElements have this offset in the
startOffset
property. For the second, the correct answer is I don't know, but you can check that out easily. There are a number of "reference" functions in IrContext which you can use to access information. My guess is that you can get the information as it is basically impossible to compile anything without it.
a
Wow. Thank you. I will check it