2 writes to _property
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
162
_property
= property;
195
_property
= property;
32 references to _property
Microsoft.CodeAnalysis.CSharp (32)
Symbols\Source\SourcePropertyAccessorSymbol.cs (32)
132
=>
_property
.NotNullMembers.Concat(base.NotNullMembers);
135
=>
_property
.NotNullWhenTrueMembers.Concat(base.NotNullWhenTrueMembers);
138
=>
_property
.NotNullWhenFalseMembers.Concat(base.NotNullWhenFalseMembers);
197
Debug.Assert(!
_property
.IsExpressionBodied, "Cannot have accessors in expression bodied lightweight properties");
291
PropertySymbol associatedProperty =
_property
;
310
var propertyAccessibility =
_property
.DeclaredAccessibility;
318
get { return
_property
; }
365
if (
_property
.HasMaybeNull)
369
if (
_property
.HasNotNull)
383
return
_property
.TypeWithAnnotations;
442
if (LocalDeclaredReadOnly || (
_property
.HasReadOnlyModifier && IsValidReadOnlyTarget))
483
!
_property
.IsStatic &&
548
else if (LocalDeclaredReadOnly &&
_property
.HasReadOnlyModifier)
551
diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location,
_property
);
560
diagnostics.Add(ErrorCode.ERR_InitInExtension, location,
_property
);
565
diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location,
_property
);
602
return
_property
.IsExplicitInterfaceImplementation;
613
PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ?
_property
.ExplicitInterfaceImplementations.FirstOrDefault() : null;
662
if (this.
_property
.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
690
PropertySymbol? explicitlyImplementedPropertyOpt =
_property
.ExplicitInterfaceImplementations.FirstOrDefault();
701
isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder
703
string? aliasQualifierOpt =
_property
.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt();
721
name = GetAccessorName(
_property
.SourceName, isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj());
763
return !
_property
.HasSkipLocalsInitAttribute && base.AreLocalsZeroed;
770
var propertyParameters =
_property
.Parameters;
808
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.MaybeNullAttributeIfExists));
812
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.NotNullAttributeIfExists));
819
public sealed override MethodSymbol? PartialImplementationPart =>
_property
is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other }
823
public sealed override MethodSymbol? PartialDefinitionPart =>
_property
is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other }
827
internal bool IsPartialDefinition =>
_property
is SourcePropertySymbol { IsPartialDefinition: true };
828
internal bool IsPartialImplementation =>
_property
is SourcePropertySymbol { IsPartialImplementation: true };