Boo.Lang.Compiler.Steps.ProcessMethodBodies.ProcessDeclarationsForIterator C# (CSharp) Метод

ProcessDeclarationsForIterator() защищенный Метод

protected ProcessDeclarationsForIterator ( DeclarationCollection declarations, IType iteratorType ) : void
declarations DeclarationCollection
iteratorType IType
Результат void
        protected void ProcessDeclarationsForIterator(DeclarationCollection declarations, IType iteratorType)
        {
            var defaultDeclType = GetEnumeratorItemType(iteratorType);
            if (declarations.Count > 1)
                // will enumerate (unpack) each item
                defaultDeclType = GetEnumeratorItemType(defaultDeclType);

            foreach (var d in declarations)
                ProcessDeclarationForIterator(d, defaultDeclType);
        }
ProcessMethodBodies