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); 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; 472if (LocalDeclaredReadOnly || (_property.HasReadOnlyModifier && IsValidReadOnlyTarget)) 513!_property.IsStatic && 579else if (LocalDeclaredReadOnly && _property.HasReadOnlyModifier) 582diagnostics.Add(ErrorCode.ERR_InvalidPropertyReadOnlyMods, location, _property); 591diagnostics.Add(ErrorCode.ERR_InitInExtension, location, _property); 596diagnostics.Add(ErrorCode.ERR_InitCannotBeReadonly, location, _property); 633return _property.IsExplicitInterfaceImplementation; 644PropertySymbol? explicitlyImplementedPropertyOpt = IsExplicitInterfaceImplementation ? _property.ExplicitInterfaceImplementations.FirstOrDefault() : null; 693if (this._property.ContainingType is SourceMemberContainerTypeSymbol { AnyMemberHasAttributes: true }) 721PropertySymbol? explicitlyImplementedPropertyOpt = _property.ExplicitInterfaceImplementations.FirstOrDefault(); 732isGetMethod, isWinMdOutput: _property.IsCompilationOutputWinMdObj()); //Not name - could be indexer placeholder 734string? aliasQualifierOpt = _property.GetExplicitInterfaceSpecifier()?.Name.GetAliasQualifierOpt(); 752name = GetAccessorName(_property.SourceName, isGetMethod, isWinMdOutput: _property.IsCompilationOutputWinMdObj()); 794return !_property.HasSkipLocalsInitAttribute && base.AreLocalsZeroed; 801var propertyParameters = _property.Parameters; 839AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.MaybeNullAttributeIfExists)); 843AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.NotNullAttributeIfExists)); 850public sealed override MethodSymbol? PartialImplementationPart => _property is SourcePropertySymbol { IsPartialDefinition: true, OtherPartOfPartial: { } other } 854public sealed override MethodSymbol? PartialDefinitionPart => _property is SourcePropertySymbol { IsPartialImplementation: true, OtherPartOfPartial: { } other } 858internal bool IsPartialDefinition => _property is SourcePropertySymbol { IsPartialDefinition: true }; 859internal bool IsPartialImplementation => _property is SourcePropertySymbol { IsPartialImplementation: true };