Symbols\Compilation_WellKnownMembers.cs (27)
46internal EmbeddableAttributes GetNeedsGeneratedAttributes()
49return (EmbeddableAttributes)_needsGeneratedAttributes;
52private void SetNeedsGeneratedAttributes(EmbeddableAttributes attributes)
512private void EnsureEmbeddableAttributeExists(EmbeddableAttributes attribute, BindingDiagnosticBag? diagnostics, Location location, bool modifyCompilation)
521if ((attribute & (EmbeddableAttributes.NullableAttribute | EmbeddableAttributes.NullableContextAttribute)) != 0 &&
530EnsureEmbeddableAttributeExists(EmbeddableAttributes.IsReadOnlyAttribute, diagnostics, location, modifyCompilation);
535EnsureEmbeddableAttributeExists(EmbeddableAttributes.RequiresLocationAttribute, diagnostics, location, modifyCompilation);
540EnsureEmbeddableAttributeExists(EmbeddableAttributes.ParamCollectionAttribute, diagnostics, location, modifyCompilation: true);
545EnsureEmbeddableAttributeExists(EmbeddableAttributes.IsByRefLikeAttribute, diagnostics, location, modifyCompilation);
550EnsureEmbeddableAttributeExists(EmbeddableAttributes.IsUnmanagedAttribute, diagnostics, location, modifyCompilation);
555EnsureEmbeddableAttributeExists(EmbeddableAttributes.NullableAttribute, diagnostics, location, modifyCompilation);
560EnsureEmbeddableAttributeExists(EmbeddableAttributes.NullableContextAttribute, diagnostics, location, modifyCompilation);
566EnsureEmbeddableAttributeExists(EmbeddableAttributes.NativeIntegerAttribute, diagnostics, location, modifyCompilation);
571EnsureEmbeddableAttributeExists(EmbeddableAttributes.ScopedRefAttribute, diagnostics, location, modifyCompilation);
574internal bool CheckIfAttributeShouldBeEmbedded(EmbeddableAttributes attribute, BindingDiagnosticBag? diagnosticsOpt, Location locationOpt)
578case EmbeddableAttributes.IsReadOnlyAttribute:
585case EmbeddableAttributes.IsByRefLikeAttribute:
592case EmbeddableAttributes.IsUnmanagedAttribute:
599case EmbeddableAttributes.NullableAttribute:
608case EmbeddableAttributes.NullableContextAttribute:
615case EmbeddableAttributes.NullablePublicOnlyAttribute:
622case EmbeddableAttributes.NativeIntegerAttribute:
632case EmbeddableAttributes.ScopedRefAttribute:
639case EmbeddableAttributes.RefSafetyRulesAttribute:
646case EmbeddableAttributes.RequiresLocationAttribute:
653case EmbeddableAttributes.ParamCollectionAttribute: