19 references to Required
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (2)
1339
return DeclarationModifiers.
Required
;
1450
case DeclarationModifiers.
Required
:
Symbols\Source\ModifierUtils.cs (4)
108
checkFeature(DeclarationModifiers.
Required
, MessageID.IDS_FeatureRequiredMembers) |
321
case DeclarationModifiers.
Required
:
375
return DeclarationModifiers.
Required
;
488
if ((modifiers & DeclarationModifiers.
Required
) != 0)
Symbols\Source\SourceFieldSymbol.cs (1)
164
internal override bool IsRequired => (Modifiers & DeclarationModifiers.
Required
) != 0;
Symbols\Source\SourceMemberFieldSymbol.cs (7)
181
DeclarationModifiers.
Required
; // Some of these are filtered out later, when illegal, for better error messages.
206
reportBadMemberFlagIfAny(result, DeclarationModifiers.
Required
, diagnostics, errorLocation);
208
result &= ~(DeclarationModifiers.Static | DeclarationModifiers.ReadOnly | DeclarationModifiers.Const | DeclarationModifiers.Volatile | DeclarationModifiers.
Required
);
224
if (reportBadMemberFlagIfAny(result, DeclarationModifiers.
Required
, diagnostics, errorLocation))
226
result &= ~DeclarationModifiers.
Required
;
233
if ((result & DeclarationModifiers.Static) != 0 && (result & DeclarationModifiers.
Required
) != 0)
237
result &= ~DeclarationModifiers.
Required
;
Symbols\Source\SourcePropertySymbol.cs (3)
394
allowedModifiers |= DeclarationModifiers.
Required
;
480
if ((mods & DeclarationModifiers.Static) != 0 && (mods & DeclarationModifiers.
Required
) != 0)
484
mods &= ~DeclarationModifiers.
Required
;
Symbols\Source\SourcePropertySymbolBase.cs (2)
105
Debug.Assert((modifiers & DeclarationModifiers.
Required
) == 0 || this is SourcePropertySymbol);
595
internal sealed override bool IsRequired => (_modifiers & DeclarationModifiers.
Required
) != 0;