private void SetFlags(AbcInstance instance, IType type) { if (type.TypeKind == TypeKind.Interface) { instance.Flags |= AbcClassFlags.Sealed | AbcClassFlags.Interface; //instance.Flags |= AbcClassFlags.Interface; } else { if (type.IsSealed) { instance.Flags |= AbcClassFlags.Final; } instance.Flags |= AbcClassFlags.Sealed; if (type.HasProtectedNamespace()) { instance.Flags |= AbcClassFlags.ProtectedNamespace; instance.ProtectedNamespace = Abc.DefineProtectedNamespace(instance.NameString); } } }