public override bool ShouldProduceFullType(TypeDesc type)
        {
            // TODO: Remove this once we have delgate constructor transform added and GetMethods() tells us about
            //       the virtuals we add on to delegate types.
            if (type.IsDelegate)
            {
                return(false);
            }

            // Fully build all types when building a library
            if (BuildingLibrary)
            {
                return(true);
            }

            // Fully build all shareable types so they will be identical in each module
            if (EETypeNode.IsTypeNodeShareable(type))
            {
                return(true);
            }

            // If referring to a type from another module, VTables, interface maps, etc should assume the
            // type is fully build.
            if (!ContainsType(type))
            {
                return(true);
            }

            return(false);
        }
Beispiel #2
0
        public override bool ShouldProduceFullType(TypeDesc type)
        {
            // Fully build all shareable types so they will be identical in each module
            if (EETypeNode.IsTypeNodeShareable(type))
            {
                return(true);
            }

            // If referring to a type from another module, VTables, interface maps, etc should assume the
            // type is fully build.
            if (!ContainsType(type))
            {
                return(true);
            }

            return(false);
        }