50 references to ModifierUtils
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Deconstruct.cs (1)
882ModifierUtils.CheckScopedModifierAvailability(typeSyntax, scopedType.ScopedKeyword, diagnostics);
Binder\Binder_Expressions.cs (1)
3160ModifierUtils.CheckScopedModifierAvailability(typeSyntax, scopedType.ScopedKeyword, diagnostics);
Binder\Binder_Lambda.cs (1)
378ModifierUtils.ToDeclarationModifiers(syntax.Modifiers, isForTypeDeclaration: false, diagnostics.DiagnosticBag ?? new DiagnosticBag());
Binder\Binder_Statements.cs (2)
713ModifierUtils.CheckScopedModifierAvailability(node, scopedType.ScopedKeyword, diagnostics); 2808ModifierUtils.CheckScopedModifierAvailability(typeSyntax, scopedType.ScopedKeyword, diagnostics);
Binder\ForEachLoopBinder.cs (1)
287ModifierUtils.CheckScopedModifierAvailability(typeSyntax, scopedType.ScopedKeyword, diagnostics);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
52=> ModifierUtils.EffectiveAccessibility(Modifiers);
Symbols\Source\LocalFunctionSymbol.cs (1)
355public override Accessibility DeclaredAccessibility => ModifierUtils.EffectiveAccessibility(_declarationModifiers);
Symbols\Source\ModifierUtils.cs (2)
95diagnostics.Add(ErrorCode.ERR_StaticNotVirtual, errorLocation, ModifierUtils.ConvertSingleModifierToSyntaxText(oneError)); 221ModifierUtils.ReportUnsupportedModifiersForLanguageVersion(mods, DeclarationModifiers.Static, location, diagnostics, availableVersion, requiredVersion);
Symbols\Source\ParameterHelpers.cs (1)
593ModifierUtils.CheckScopedModifierAvailability(parameter, modifier, diagnostics);
Symbols\Source\SourceConstructorSymbol.cs (3)
69ModifierUtils.CheckAccessibility(this.DeclarationModifiers, this, isExplicitInterfaceImplementation: false, diagnostics, location); 136var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: isInterface, syntax.Modifiers, defaultAccess, allowedModifiers, location, diagnostics, out modifierErrors); 156ModifierUtils.ReportDefaultInterfaceImplementationModifiers(hasBody, mods,
Symbols\Source\SourceDestructorSymbol.cs (1)
133var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: containingType.IsInterface, modifiers, DeclarationModifiers.None, allowedModifiers, location, diagnostics, out modifierErrors);
Symbols\Source\SourceEventSymbol.cs (6)
405get { return ModifierUtils.EffectiveAccessibility(_modifiers); } 440ModifierUtils.CheckAccessibility(_modifiers, this, isExplicitInterfaceImplementation, diagnostics, location); 503var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: isInterface, 506ModifierUtils.CheckFeatureAvailabilityForStaticAbstractMembersInInterfacesIfNeeded(mods, explicitInterfaceImplementation, location, diagnostics); 510ModifierUtils.ReportDefaultInterfaceImplementationModifiers(!isFieldLike, mods, 518mods = ModifierUtils.AdjustModifiersForAnInterfaceMember(mods, !isFieldLike, explicitInterfaceImplementation);
Symbols\Source\SourceFieldSymbol.cs (1)
51ModifierUtils.CheckAccessibility(Modifiers, this, isExplicitInterfaceImplementation: false, diagnostics, ErrorLocation);
Symbols\Source\SourceMemberContainerSymbol.cs (3)
408mods = ModifierUtils.CheckModifiers( 416modifierErrors = ModifierUtils.CheckAccessibility(mods, this, isExplicitInterfaceImplementation: false, diagnostics, this.GetFirstLocation()); 884return ModifierUtils.EffectiveAccessibility(_declModifiers);
Symbols\Source\SourceMemberFieldSymbol.cs (2)
184DeclarationModifiers result = ModifierUtils.MakeAndCheckNonTypeMemberModifiers( 262diagnostics.Add(ErrorCode.ERR_BadMemberFlag, errorLocation, ModifierUtils.ConvertSingleModifierToSyntaxText(modifier));
Symbols\Source\SourceMemberMethodSymbol.cs (1)
583return ModifierUtils.EffectiveAccessibility(this.DeclarationModifiers);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (5)
76ModifierUtils.CheckAccessibility(this.DeclarationModifiers, this, isExplicitInterfaceImplementation: methodKind == MethodKind.ExplicitInterfaceImplementation, diagnostics, location); 426return ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: true, isForInterfaceMember: containingType.IsInterface, 758ModifierUtils.CheckFeatureAvailabilityForStaticAbstractMembersInInterfacesIfNeeded(mods, isExplicitInterfaceImplementation, location, diagnostics); 760ModifierUtils.ReportDefaultInterfaceImplementationModifiers(hasBody, mods, 774mods = ModifierUtils.AdjustModifiersForAnInterfaceMember(mods, hasBody,
Symbols\Source\SourcePropertyAccessorSymbol.cs (5)
167ModifierUtils.CheckAccessibility(this.DeclarationModifiers, this, property.IsExplicitInterfaceImplementation, diagnostics, location); 211ModifierUtils.CheckAccessibility(this.DeclarationModifiers, this, property.IsExplicitInterfaceImplementation, diagnostics, location); 426get { return ModifierUtils.EffectiveAccessibility(this.DeclarationModifiers); } 514var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: isInterface, 517ModifierUtils.ReportDefaultInterfaceImplementationModifiers(hasBody, mods,
Symbols\Source\SourcePropertySymbol.cs (5)
436var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: isInterface, 456ModifierUtils.ReportUnsupportedModifiersForLanguageVersion(mods, DeclarationModifiers.Partial, location, diagnostics, availableVersion, requiredVersion); 460ModifierUtils.CheckFeatureAvailabilityForStaticAbstractMembersInInterfacesIfNeeded(mods, isExplicitInterfaceImplementation, location, diagnostics); 464ModifierUtils.ReportDefaultInterfaceImplementationModifiers(accessorsHaveImplementation, mods, 472mods = ModifierUtils.AdjustModifiersForAnInterfaceMember(mods, accessorsHaveImplementation, isExplicitInterfaceImplementation);
Symbols\Source\SourcePropertySymbolBase.cs (2)
686return ModifierUtils.EffectiveAccessibility(_modifiers); 1053ModifierUtils.CheckAccessibility(_modifiers, this, isExplicitInterfaceImplementation, diagnostics, location);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (4)
122ModifierUtils.CheckAccessibility(this.DeclarationModifiers, this, isExplicitInterfaceImplementation: false, diagnostics, location); 154var result = ModifierUtils.MakeAndCheckNonTypeMemberModifiers( 165diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, ModifierUtils.ConvertSingleModifierToSyntaxText(DeclarationModifiers.Sealed)); 212ModifierUtils.ConvertSingleModifierToSyntaxText(errorModifier),
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
173get { return ModifierUtils.EffectiveAccessibility(_modifiers); }