Boo.Lang.Compiler.Steps.GeneratorMethodProcessor.Run C# (CSharp) Метод

Run() публичный Метод

public Run ( ) : void
Результат void
        public override void Run()
        {
            CreateEnumerableConstructor();
            CreateEnumerator();
            MethodInvocationExpression enumerableConstructorInvocation = CodeBuilder.CreateConstructorInvocation(_enumerable.ClassDefinition);
            MethodInvocationExpression enumeratorConstructorInvocation = CodeBuilder.CreateConstructorInvocation(_enumerator.ClassDefinition);
            PropagateReferences(enumerableConstructorInvocation, enumeratorConstructorInvocation);
            CreateGetEnumerator(enumeratorConstructorInvocation);
            FixGeneratorMethodBody(enumerableConstructorInvocation);
        }

Usage Example

Пример #1
0
        public override void LeaveMethod(Method method)
        {
            InternalMethod entity = (InternalMethod)method.Entity;
            if (!entity.IsGenerator) return;

            GeneratorMethodProcessor processor = new GeneratorMethodProcessor(_context, entity);
            processor.Run();
        }
All Usage Examples Of Boo.Lang.Compiler.Steps.GeneratorMethodProcessor::Run