2 writes to _property
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
187
_property
= property;
220
_property
= property;
34 references to _property
Microsoft.CodeAnalysis.CSharp (34)
Symbols\Source\SourcePropertyAccessorSymbol.cs (34)
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;
473
internal sealed override bool IsUnsafe => LocalDeclaredUnsafe ||
_property
.HasUnsafeModifier;
483
if (LocalDeclaredReadOnly || (
_property
.HasReadOnlyModifier && IsValidReadOnlyTarget))
524
!
_property
.IsStatic &&
597
else if (LocalDeclaredReadOnly &&
_property
.HasReadOnlyModifier)
600
diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location,
_property
);
609
diagnostics.Add(ErrorCode.ERR_InitInExtension, location,
_property
);
614
diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location,
_property
);
651
return
_property
.IsExplicitInterfaceImplementation;
662
PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ?
_property
.ExplicitInterfaceImplementations.FirstOrDefault() : null;
711
if (this.
_property
.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true })
739
PropertySymbol? explicitlyImplementedPropertyOpt =
_property
.ExplicitInterfaceImplementations.FirstOrDefault();
750
isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder
752
string? aliasQualifierOpt =
_property
.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt();
770
name = GetAccessorName(
_property
.SourceName, isGetMethod, isWinMdOutput:
_property
.IsCompilationOutputWinMdObj());
812
return !
_property
.HasSkipLocalsInitAttribute && base.AreLocalsZeroed;
819
var propertyParameters =
_property
.Parameters;
857
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.MaybeNullAttributeIfExists));
861
AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(
_property
.NotNullAttributeIfExists));
868
public sealed override MethodSymbol? PartialImplementationPart =>
_property
is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other }
872
public sealed override MethodSymbol? PartialDefinitionPart =>
_property
is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other }
876
internal bool IsPartialDefinition =>
_property
is SourcePropertySymbol { IsPartialDefinition: true };
877
internal bool IsPartialImplementation =>
_property
is SourcePropertySymbol { IsPartialImplementation: true };