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");
279
if (
_property
is SynthesizedUnionValuePropertySymbol or SynthesizedRecordEqualityContractProperty or SynthesizedRecordPropertySymbol)
318
PropertySymbol associatedProperty =
_property
;
337
var propertyAccessibility =
_property
.DeclaredAccessibility;
345
get { return
_property
; }
392
if (
_property
.HasMaybeNull)
396
if (
_property
.HasNotNull)
410
return
_property
.TypeWithAnnotations;
473
if (LocalDeclaredReadOnly || (
_property
.HasReadOnlyModifier && IsValidReadOnlyTarget))
514
!
_property
.IsStatic &&
587
else if (LocalDeclaredReadOnly &&
_property
.HasReadOnlyModifier)
590
diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location,
_property
);
599
diagnostics.Add(ErrorCode.ERR_InitInExtension, location,
_property
);
604
diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location,
_property
);
641
return
_property
.IsExplicitInterfaceImplementation;
652
PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ?
_property
.ExplicitInterfaceImplementations.FirstOrDefault() : null;
701
if (this.
_property
.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
729
PropertySymbol? explicitlyImplementedPropertyOpt =
_property
.ExplicitInterfaceImplementations.FirstOrDefault();
740
isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder
742
string? aliasQualifierOpt =
_property
.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt();
760
name = GetAccessorName(
_property
.SourceName, isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj());
802
return !
_property
.HasSkipLocalsInitAttribute && base.AreLocalsZeroed;
809
var propertyParameters =
_property
.Parameters;
847
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.MaybeNullAttributeIfExists));
851
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.NotNullAttributeIfExists));
858
public sealed override MethodSymbol? PartialImplementationPart =>
_property
is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other }
862
public sealed override MethodSymbol? PartialDefinitionPart =>
_property
is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other }
866
internal bool IsPartialDefinition =>
_property
is SourcePropertySymbol { IsPartialDefinition: true };
867
internal bool IsPartialImplementation =>
_property
is SourcePropertySymbol { IsPartialImplementation: true };