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); 222Debug.Assert(!_property.IsExpressionBodied, "Cannot have accessors in expression bodied lightweight properties"); 282if (_property is SynthesizedUnionValuePropertySymbol or SynthesizedRecordEqualityContractProperty or SynthesizedRecordPropertySymbol) 321PropertySymbol associatedProperty = _property; 340var propertyAccessibility = _property.DeclaredAccessibility; 348get { return _property; } 395if (_property.HasMaybeNull) 399if (_property.HasNotNull) 413return _property.TypeWithAnnotations; 473internal sealed override bool IsUnsafe => LocalDeclaredUnsafe || _property.HasUnsafeModifier; 483if (LocalDeclaredReadOnly || (_property.HasReadOnlyModifier && IsValidReadOnlyTarget)) 524!_property.IsStatic && 597else if (LocalDeclaredReadOnly && _property.HasReadOnlyModifier) 600diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location, _property); 609diagnostics.Add(ErrorCode.ERR_InitInExtension, location, _property); 614diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location, _property); 651return _property.IsExplicitInterfaceImplementation; 662PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ? _property.ExplicitInterfaceImplementations.FirstOrDefault() : null; 711if (this._property.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true }) 739PropertySymbol? explicitlyImplementedPropertyOpt = _property.ExplicitInterfaceImplementations.FirstOrDefault(); 750isGetMethod, isWinMdOutput: _property.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder 752string? aliasQualifierOpt = _property.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt(); 770name = GetAccessorName(_property.SourceName, isGetMethod, isWinMdOutput: _property.IsCompilationOutputWinMdObj()); 812return !_property.HasSkipLocalsInitAttribute && base.AreLocalsZeroed; 819var propertyParameters = _property.Parameters; 857AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.MaybeNullAttributeIfExists)); 861AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.NotNullAttributeIfExists)); 868public sealed override MethodSymbol? PartialImplementationPart => _property is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other } 872public sealed override MethodSymbol? PartialDefinitionPart => _property is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other } 876internal bool IsPartialDefinition => _property is SourcePropertySymbol { IsPartialDefinition: true }; 877internal bool IsPartialImplementation => _property is SourcePropertySymbol { IsPartialImplementation: true };