2 writes to _property
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
187
_property
= property;
220
_property
= property;
33 references to _property
Microsoft.CodeAnalysis.CSharp (33)
Symbols\Source\SourcePropertyAccessorSymbol.cs (33)
157
=>
_property
.NotNullMembers.Concat(base.NotNullMembers);
160
=>
_property
.NotNullWhenTrueMembers.Concat(base.NotNullWhenTrueMembers);
163
=>
_property
.NotNullWhenFalseMembers.Concat(base.NotNullWhenFalseMembers);
222
Debug.Assert(!
_property
.IsExpressionBodied, "Cannot have accessors in expression bodied lightweight properties");
282
if (
_property
is SynthesizedUnionValuePropertySymbol or SynthesizedRecordEqualityContractProperty or SynthesizedRecordPropertySymbol)
321
PropertySymbol associatedProperty =
_property
;
340
var propertyAccessibility =
_property
.DeclaredAccessibility;
348
get { return
_property
; }
395
if (
_property
.HasMaybeNull)
399
if (
_property
.HasNotNull)
413
return
_property
.TypeWithAnnotations;
472
if (LocalDeclaredReadOnly || (
_property
.HasReadOnlyModifier && IsValidReadOnlyTarget))
513
!
_property
.IsStatic &&
579
else if (LocalDeclaredReadOnly &&
_property
.HasReadOnlyModifier)
582
diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location,
_property
);
591
diagnostics.Add(ErrorCode.ERR_InitInExtension, location,
_property
);
596
diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location,
_property
);
633
return
_property
.IsExplicitInterfaceImplementation;
644
PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ?
_property
.ExplicitInterfaceImplementations.FirstOrDefault() : null;
693
if (this.
_property
.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
721
PropertySymbol? explicitlyImplementedPropertyOpt =
_property
.ExplicitInterfaceImplementations.FirstOrDefault();
732
isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder
734
string? aliasQualifierOpt =
_property
.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt();
752
name = GetAccessorName(
_property
.SourceName, isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj());
794
return !
_property
.HasSkipLocalsInitAttribute && base.AreLocalsZeroed;
801
var propertyParameters =
_property
.Parameters;
839
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.MaybeNullAttributeIfExists));
843
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.NotNullAttributeIfExists));
850
public sealed override MethodSymbol? PartialImplementationPart =>
_property
is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other }
854
public sealed override MethodSymbol? PartialDefinitionPart =>
_property
is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other }
858
internal bool IsPartialDefinition =>
_property
is SourcePropertySymbol { IsPartialDefinition: true };
859
internal bool IsPartialImplementation =>
_property
is SourcePropertySymbol { IsPartialImplementation: true };