示例#1
0
        public static BoundNode Analyze(
            BoundNode node, 
            Dictionary<LocalSymbol, LocalDefUseInfo> locals,
            ArrayBuilder<ValueTuple<BoundExpression, ExprContext>> evalStack,
            bool debugFriendly)
        {
            var analyzer = new StackOptimizerPass1(locals, evalStack, debugFriendly);
            var rewritten = analyzer.Visit(node);

            return rewritten;
        }
示例#2
0
        public static BoundNode Analyze(BoundNode node, Dictionary<LocalSymbol, LocalDefUseInfo> locals)
        {
            var analyser = new StackOptimizerPass1(locals);
            var rewritten = analyser.Visit(node);

            return rewritten;
        }