37 references to Flags
Microsoft.CodeAnalysis.CSharp (37)
Symbols\Source\SourcePropertySymbolBase.cs (37)
57
private readonly
Flags
_propertyFlags;
117
_propertyFlags |=
Flags
.IsExplicitInterfaceImplementation;
126
_propertyFlags |=
Flags
.HasExplicitAccessModifier;
131
_propertyFlags |=
Flags
.HasAutoPropertyGet;
136
_propertyFlags |=
Flags
.HasAutoPropertySet;
141
_propertyFlags |=
Flags
.GetterUsesFieldKeyword;
146
_propertyFlags |=
Flags
.SetterUsesFieldKeyword;
151
_propertyFlags |=
Flags
.HasInitializer;
156
_propertyFlags |=
Flags
.IsExpressionBodied;
161
_propertyFlags |=
Flags
.AccessorsHaveImplementation;
185
_propertyFlags |=
Flags
.RequiresBackingField;
297
=> (_propertyFlags &
Flags
.IsExpressionBodied) != 0;
301
if ((_propertyFlags &
Flags
.HasInitializer) == 0)
326
var
propertyFlags = property._propertyFlags;
327
var getterUsesFieldKeyword = (propertyFlags &
Flags
.GetterUsesFieldKeyword) != 0;
328
var setterUsesFieldKeyword = (propertyFlags &
Flags
.SetterUsesFieldKeyword) != 0;
331
&& !property.IsSetOnEitherPart(
Flags
.HasInitializer)
655
=> (_propertyFlags &
Flags
.IsExplicitInterfaceImplementation) != 0;
701
=> IsSetOnEitherPart(
Flags
.HasAutoPropertyGet |
Flags
.HasAutoPropertySet |
Flags
.GetterUsesFieldKeyword |
Flags
.SetterUsesFieldKeyword);
704
=> IsSetOnEitherPart(
Flags
.GetterUsesFieldKeyword |
Flags
.SetterUsesFieldKeyword);
707
=> (_propertyFlags &
Flags
.HasExplicitAccessModifier) != 0;
710
=> IsSetOnEitherPart(
Flags
.HasAutoPropertyGet |
Flags
.HasAutoPropertySet);
713
=> IsSetOnEitherPart(
Flags
.HasAutoPropertyGet);
716
=> IsSetOnEitherPart(
Flags
.HasAutoPropertySet);
738
private bool IsSetOnEitherPart(
Flags
flags)
745
=> (_propertyFlags &
Flags
.AccessorsHaveImplementation) != 0;
773
(_propertyFlags &
Flags
.RequiresBackingField) != 0)
806
(_getMethod is null || (_propertyFlags &
Flags
.HasAutoPropertyGet) != 0 || _getMethod.IsDeclaredReadOnly))
815
return new SynthesizedBackingFieldSymbol(this, fieldName, isReadOnly: isReadOnly, isStatic: this.IsStatic, hasInitializer: (_propertyFlags &
Flags
.HasInitializer) != 0);
866
if (!IsStatic && ((_propertyFlags &
Flags
.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false })
901
IsSetOnEitherPart(
Flags
.RequiresBackingField) &&
904
!IsSetOnEitherPart(
Flags
.HasInitializer))