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 &&
589
else if (LocalDeclaredReadOnly &&
_property
.HasReadOnlyModifier)
592
diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location,
_property
);
601
diagnostics.Add(ErrorCode.ERR_InitInExtension, location,
_property
);
606
diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location,
_property
);
643
return
_property
.IsExplicitInterfaceImplementation;
654
PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ?
_property
.ExplicitInterfaceImplementations.FirstOrDefault() : null;
703
if (this.
_property
.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
731
PropertySymbol? explicitlyImplementedPropertyOpt =
_property
.ExplicitInterfaceImplementations.FirstOrDefault();
742
isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder
744
string? aliasQualifierOpt =
_property
.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt();
762
name = GetAccessorName(
_property
.SourceName, isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj());
804
return !
_property
.HasSkipLocalsInitAttribute && base.AreLocalsZeroed;
811
var propertyParameters =
_property
.Parameters;
849
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.MaybeNullAttributeIfExists));
853
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.NotNullAttributeIfExists));
860
public sealed override MethodSymbol? PartialImplementationPart =>
_property
is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other }
864
public sealed override MethodSymbol? PartialDefinitionPart =>
_property
is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other }
868
internal bool IsPartialDefinition =>
_property
is SourcePropertySymbol { IsPartialDefinition: true };
869
internal bool IsPartialImplementation =>
_property
is SourcePropertySymbol { IsPartialImplementation: true };