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