| File: Emitter\NoPia\EmbeddedProperty.cs | Web Access |
| Project: src\roslyn\src\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj (Microsoft.CodeAnalysis.CSharp) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Collections.Immutable; using Microsoft.CodeAnalysis.CSharp.Symbols; using Cci = Microsoft.Cci; #if !DEBUG using PropertySymbolAdapter = Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol; #endif namespace Microsoft.CodeAnalysis.CSharp.Emit.NoPia { internal sealed class EmbeddedProperty : EmbeddedTypesManager.CommonEmbeddedProperty { public EmbeddedProperty(PropertySymbolAdapter underlyingProperty, EmbeddedMethod getter, EmbeddedMethod setter) : base(underlyingProperty, getter, setter) { } protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) { return UnderlyingProperty.AdaptedPropertySymbol.GetCustomAttributesToEmit(moduleBuilder); } protected override ImmutableArray<EmbeddedParameter> GetParameters() { return EmbeddedTypesManager.EmbedParameters(this, UnderlyingProperty.AdaptedPropertySymbol.Parameters); } protected override bool IsRuntimeSpecial { get { return UnderlyingProperty.AdaptedPropertySymbol.HasRuntimeSpecialName; } } protected override bool IsSpecialName { get { return UnderlyingProperty.AdaptedPropertySymbol.HasSpecialName; } } protected override Cci.ISignature UnderlyingPropertySignature { get { return (Cci.ISignature)UnderlyingProperty; } } protected override EmbeddedType ContainingType { get { return AnAccessor.ContainingType; } } protected override Cci.TypeMemberVisibility Visibility => UnderlyingProperty.AdaptedPropertySymbol.MetadataVisibility; protected override string Name { get { return UnderlyingProperty.AdaptedPropertySymbol.MetadataName; } } } }