37 references to Flags
Microsoft.CodeAnalysis.CSharp (37)
Symbols\Source\SourcePropertySymbolBase.cs (37)
56
private 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;
300
if ((_propertyFlags &
Flags
.HasInitializer) == 0)
325
var
propertyFlags = property._propertyFlags;
326
var getterUsesFieldKeyword = (propertyFlags &
Flags
.GetterUsesFieldKeyword) != 0;
327
var 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);
737
private bool IsSetOnEitherPart(
Flags
flags)
744
=> (_propertyFlags &
Flags
.AccessorsHaveImplementation) != 0;
780
(_propertyFlags &
Flags
.RequiresBackingField) != 0)
813
(_getMethod is null || (_propertyFlags &
Flags
.HasAutoPropertyGet) != 0 || _getMethod.IsDeclaredReadOnly))
822
return new SynthesizedBackingFieldSymbol(this, fieldName, isReadOnly: isReadOnly, isStatic: this.IsStatic, hasInitializer: (_propertyFlags &
Flags
.HasInitializer) != 0);
873
if (!IsStatic && ((_propertyFlags &
Flags
.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false })
908
IsSetOnEitherPart(
Flags
.RequiresBackingField) &&
911
!IsSetOnEitherPart(
Flags
.HasInitializer))