30 references to Attributes
Microsoft.CodeAnalysis (8)
MetadataReader\MetadataReaderExtensions.cs (1)
200return (typeDef.Attributes & (TypeAttributes.Public | TypeAttributes.Interface)) == TypeAttributes.Public &&
MetadataReader\PEModule.cs (7)
572return MetadataReader.GetTypeDefinition(typeDef).Attributes; 598flags = row.Attributes; 611return IsNested(metadataReader.GetTypeDefinition(typeDef).Attributes); 617return MetadataReader.GetTypeDefinition(typeDef).Attributes.IsInterface(); 639if (topLevelOnly && IsNested(row.Attributes)) 937switch (def.Attributes & TypeAttributes.LayoutMask) 3139if (IsNested(def.Attributes))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_WellKnownAttributes.cs (6)
3477Assert.Equal(TypeAttributes.ExplicitLayout | TypeAttributes.Abstract | TypeAttributes.BeforeFieldInit, def.Attributes); 3557var actual = row.Attributes & TypeAttributes.StringFormatMask; 4721Assert.Equal(TypeAttributes.SpecialName, row.Attributes & TypeAttributes.SpecialName); 4726Assert.Equal((TypeAttributes)0, row.Attributes & TypeAttributes.SpecialName); 4833Assert.Equal(TypeAttributes.Serializable, row.Attributes & TypeAttributes.Serializable); 4839Assert.Equal((TypeAttributes)0, row.Attributes & TypeAttributes.Serializable);
Microsoft.CodeAnalysis.Workspaces (4)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (4)
428if ((typeDefinition.Attributes & TypeAttributes.Abstract) != 0 && 429(typeDefinition.Attributes & TypeAttributes.Sealed) != 0) 474if (IsPublic(type.Attributes)) 497if (IsPublic(typeDefinition.Attributes))
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
140return (typeDefination.Attributes & TypeAttributes.Public) != 0;
Microsoft.DotNet.PackageTesting (2)
VerifyTypes.cs (2)
194isPublic = IsPublic(definition.Attributes); 200if (IsNested(definition.Attributes))
Microsoft.DotNet.SharedFramework.Sdk (2)
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (2)
194isPublic = IsPublic(definition.Attributes); 200if (IsNested(definition.Attributes))
Roslyn.Test.PdbUtilities (1)
Shared\DummyMetadataImport.cs (1)
113attributes = typeDef.Attributes;
SemanticSearch.BuildTask (3)
GenerateFilteredReferenceAssembliesTask.cs (3)
365var oldVisibility = typeDef.Attributes & TypeAttributes.VisibilityMask; 382Debug.Assert((TypeAttributes)ReadUInt32(writer.BaseStream) == typeDef.Attributes); 386writer.Write((uint)(typeDef.Attributes & ~TypeAttributes.VisibilityMask | newVisibility));
System.Reflection.Metadata (2)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
332if (type.Attributes.IsNested())
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
57public bool IsNested => Attributes.IsNested();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
50protected sealed override TypeAttributes ComputeAttributeFlags() => TypeDefinition.Attributes;