Inheritance: Boo.Lang.Compiler.AbstractCompilerComponent
Example #1
0
        override public void LeaveGeneratorExpression(GeneratorExpression node)
        {
            var collector = new ForeignReferenceCollector();

            collector.CurrentType = (IType)AstUtil.GetParentClass(node).Entity;
            node.Accept(collector);

            var processor = new GeneratorExpressionProcessor(Context, collector, node);

            processor.Run();
            ReplaceCurrentNode(processor.CreateEnumerableConstructorInvocation());
        }
Example #2
0
        override public void LeaveGeneratorExpression(GeneratorExpression node)
        {
            using (ForeignReferenceCollector collector = new ForeignReferenceCollector())
            {
                collector.CurrentType = (IType)AstUtil.GetParentClass(node).Entity;
                collector.Initialize(_context);
                collector.Visit(node);

                GeneratorExpressionProcessor processor = new GeneratorExpressionProcessor(_context, collector, node);
                processor.Run();
                ReplaceCurrentNode(processor.CreateEnumerableConstructorInvocation());
            }
        }
Example #3
0
        public override void LeaveGeneratorExpression(GeneratorExpression node)
        {
            using (ForeignReferenceCollector collector = new ForeignReferenceCollector())
            {
                collector.CurrentType = (IType)AstUtil.GetParentClass(node).Entity;
                collector.Initialize(_context);
                collector.Visit(node);

                GeneratorExpressionProcessor processor = new GeneratorExpressionProcessor(_context, collector, node);
                processor.Run();
                ReplaceCurrentNode(processor.CreateEnumerableConstructorInvocation());
            }
        }
Example #4
0
        public override void LeaveGeneratorExpression(GeneratorExpression node)
        {
            var collector = new ForeignReferenceCollector {
                CurrentType = TypeContaining(node)
            };

            node.Accept(collector);

            var processor = new GeneratorExpressionProcessor(Context, collector, node);

            processor.Run();

            ReplaceCurrentNode(processor.CreateEnumerableConstructorInvocation());
        }