Open magicmoux opened 1 year ago
@magicmoux please rebase.
I've fixed majority of the cases except EF tests. Also, it seems that decompilation here is going too far and maybe undesirable for some users.
The nesting handling is so simple that I did not see it sitting right in front of me
Also, it seems that decompilation here is going too far and maybe undesirable for some users.
I suppose you're talking about the fact that the solution provided here assumes that any IQueryable
referenced by fields or local variables would be forcibly decompiled ?
@hazzik rebased and I restricted dereferencing queryables only to explicitly decompiled instances (also applied this to the EF tests) This helps reflect the DecompileAttribute usage (which is not applicable in those cases) for local variables and class fields.
I suppose you're talking about the fact that the solution provided here assumes that any IQueryable referenced by fields or local variables would be forcibly decompiled ?
yes
@hazzik here's PR #209 merged directly into OtpimzeExpressionVisitor.cs
Once again, I committed the unit tests first for demonstration.