コード例 #1
0
        private void ProvideNestedTypes(TypeNode /*!*/ typeNode, object /*!*/ handle)
        {
            SpecializerHandle sHandler         = (SpecializerHandle)handle;
            TypeNode          savedCurrentType = this.CurrentType;

            this.CurrentType = typeNode;
            sHandler.NestedTypeProvider(typeNode, sHandler.Handle);
            TypeNodeList nestedTypes = typeNode.nestedTypes;

            for (int i = 0, n = nestedTypes == null ? 0 : nestedTypes.Count; i < n; i++)
            {
                //^ assert nestedTypes != null;
                TypeNode nt = nestedTypes[i];
                if (nt == null)
                {
                    continue;
                }
                this.VisitTypeNode(nt);
            }
            this.CurrentType = savedCurrentType;
        }