19 references to Required
Microsoft.CodeAnalysis.CSharp (19)
Parser\LanguageParser.cs (2)
1340return DeclarationModifiers.Required; 1451case 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)
181DeclarationModifiers.Required; // Some of these are filtered out later, when illegal, for better error messages. 206reportBadMemberFlagIfAny(result, DeclarationModifiers.Required, diagnostics, errorLocation); 208result &= ~(DeclarationModifiers.Static | DeclarationModifiers.ReadOnly | DeclarationModifiers.Const | DeclarationModifiers.Volatile | DeclarationModifiers.Required); 224if (reportBadMemberFlagIfAny(result, DeclarationModifiers.Required, diagnostics, errorLocation)) 226result &= ~DeclarationModifiers.Required; 233if ((result & DeclarationModifiers.Static) != 0 && (result & DeclarationModifiers.Required) != 0) 237result &= ~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)
105Debug.Assert((modifiers & DeclarationModifiers.Required) == 0 || this is SourcePropertySymbol); 595internal sealed override bool IsRequired => (_modifiers & DeclarationModifiers.Required) != 0;