37 references to Flags
Microsoft.CodeAnalysis.CSharp (37)
Symbols\Source\SourcePropertySymbolBase.cs (37)
56private readonly Flags _propertyFlags; 116_propertyFlags |= Flags.IsExplicitInterfaceImplementation; 125_propertyFlags |= Flags.HasExplicitAccessModifier; 130_propertyFlags |= Flags.HasAutoPropertyGet; 135_propertyFlags |= Flags.HasAutoPropertySet; 140_propertyFlags |= Flags.GetterUsesFieldKeyword; 145_propertyFlags |= Flags.SetterUsesFieldKeyword; 150_propertyFlags |= Flags.HasInitializer; 155_propertyFlags |= Flags.IsExpressionBodied; 160_propertyFlags |= Flags.AccessorsHaveImplementation; 184_propertyFlags |= Flags.RequiresBackingField; 296=> (_propertyFlags & Flags.IsExpressionBodied) != 0; 300if ((_propertyFlags & Flags.HasInitializer) == 0) 325var propertyFlags = property._propertyFlags; 326var getterUsesFieldKeyword = (propertyFlags & Flags.GetterUsesFieldKeyword) != 0; 327var setterUsesFieldKeyword = (propertyFlags & Flags.SetterUsesFieldKeyword) != 0; 330&& !property.IsSetOnEitherPart(Flags.HasInitializer) 654=> (_propertyFlags & Flags.IsExplicitInterfaceImplementation) != 0; 700=> IsSetOnEitherPart(Flags.HasAutoPropertyGet | Flags.HasAutoPropertySet | Flags.GetterUsesFieldKeyword | Flags.SetterUsesFieldKeyword); 703=> IsSetOnEitherPart(Flags.GetterUsesFieldKeyword | Flags.SetterUsesFieldKeyword); 706=> (_propertyFlags & Flags.HasExplicitAccessModifier) != 0; 709=> IsSetOnEitherPart(Flags.HasAutoPropertyGet | Flags.HasAutoPropertySet); 712=> IsSetOnEitherPart(Flags.HasAutoPropertyGet); 715=> IsSetOnEitherPart(Flags.HasAutoPropertySet); 737private bool IsSetOnEitherPart(Flags flags) 744=> (_propertyFlags & Flags.AccessorsHaveImplementation) != 0; 780(_propertyFlags & Flags.RequiresBackingField) != 0) 813(_getMethod is null || (_propertyFlags & Flags.HasAutoPropertyGet) != 0 || _getMethod.IsDeclaredReadOnly)) 822return new SynthesizedBackingFieldSymbol(this, fieldName, isReadOnly: isReadOnly, isStatic: this.IsStatic, hasInitializer: (_propertyFlags & Flags.HasInitializer) != 0); 873if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false }) 908IsSetOnEitherPart(Flags.RequiresBackingField) && 911!IsSetOnEitherPart(Flags.HasInitializer))