[nem-en] [Integration] How to prevent local function inlining.
Igor Tkachev
it at rsdn.ru
Sun Aug 13 00:25:02 CEST 2006
Hi All,
In order to implement quick tips for the integration project, I need
to parse source code and then to run body typer. I can do that.
However there is a problem which is really bothering me.
If my code does not have any errors, the body typer performs local
function inlining. So, I can’t display some information just because
this information totally disappears from the typed expression tree. I
have found a way how to prevent the typer from the inlining, but this
way is really barbarous one. Every time I call the compiler I add the
following code to the method body:
bodyCode += "\n;*/; EERRRROOR"; :)
The point is if there is an error, the compiler does not performs the
inlining. It works, but I am looking for a legal way to prevent the
inlining. Do we have any flag/parameter/whatever for this?
Ideally what I need is maximum typification, no inlining, precise
expression tree node location.
The last one sometimes is not correct. For example, typeof(string)
does not include '(string)' part in the location scope.
--
Best regards,
Igor
mailto:it at rsdn.ru
More information about the devel-en
mailing list