Example #1
0
        public static Expression Analyze(AnalysisContext analysisContext, ExpressionNodeBase node)
        {
            var analyzer = new ExpressionAnalyzer(analysisContext);
            node.Accept(analyzer);

            if (analyzer._result == null)
                throw new InternalException("Node type " + node.NodeKind + " not recognized by " + analyzer.GetType().FullName);

            return analyzer._result;
        }
Example #2
0
 public override void AfterRightExpressionVisit(ExpressionNodeBase node)
 {
     base.AfterRightExpressionVisit(node);
     _rightExpression = _result;
     _result = null;
 }