I've been fiddling around with the ParseTreeNode visitor in the last few days and am trying to work out how to get the type associated with an expression. A complicated instance is something like this:
var p = from o in Somethings select o.SomeAspect;
At some point you're going to get an assignment BinaryExpressionNode on the right of which is a LambdaExpressionNode. Is there a way of inspecting or compiling the LambdaExpressionNode to inspect its type. Or do I have to do it manually (a horrible prospect)?