6 references to CheckIfAttributeShouldBeEmbedded
Microsoft.CodeAnalysis.CSharp (6)
Emitter\Model\PEAssemblyBuilder.cs (4)
426Compilation.CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes.NullablePublicOnlyAttribute, diagnostics, Location.None)) 434Compilation.CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes.RefSafetyRulesAttribute, diagnostics, Location.None)) 440Compilation.CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes.MemorySafetyRulesAttribute, diagnostics, Location.None)) 446Compilation.CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes.RequiresUnsafeAttribute, diagnostics, Location.None))
Emitter\Model\PEModuleBuilder.cs (1)
1961if (Compilation.CheckIfAttributeShouldBeEmbedded(attribute, diagnosticsOpt, locationOpt))
Symbols\Compilation_WellKnownMembers.cs (1)
522if (CheckIfAttributeShouldBeEmbedded(attribute, diagnostics, location) && modifyCompilation)