Skip to main content

ModifierListInfo Struct

Namespace: Roslynator.CSharp.Syntax

Assembly: Roslynator.CSharp.dll

Provides information about modifier list.

public readonly struct ModifierListInfo

Inheritance

Object ValueType ModifierListInfo

Properties

PropertySummary
ExplicitAccessibilityThe explicit accessibility.
IsAbstractTrue if the modifier list contains "abstract" modifier.
IsAsyncTrue if the modifier list contains "async" modifier.
IsConstTrue if the modifier list contains "const" modifier.
IsExternTrue if the modifier list contains "extern" modifier.
IsInTrue if the modifier list contains "in" modifier.
IsNewTrue if the modifier list contains "new" modifier.
IsOutTrue if the modifier list contains "out" modifier.
IsOverrideTrue if the modifier list contains "override" modifier.
IsParamsTrue if the modifier list contains "params" modifier.
IsPartialTrue if the modifier list contains "partial" modifier.
IsReadOnlyTrue if the modifier list contains "readonly" modifier.
IsRefTrue if the modifier list contains "ref" modifier.
IsSealedTrue if the modifier list contains "sealed" modifier.
IsStaticTrue if the modifier list contains "static" modifier.
IsUnsafeTrue if the modifier list contains "unsafe" modifier.
IsVirtualTrue if the modifier list contains "virtual" modifier.
IsVolatileTrue if the modifier list contains "volatile" modifier.
ModifiersThe modifier list.
ParentThe node that contains the modifiers.
SuccessDetermines whether this struct was initialized with an actual syntax.

Methods

MethodSummary
Equals(Object)(Inherited from ValueType)
GetFilter()Gets the modifier filter.
GetHashCode()(Inherited from ValueType)
GetType()(Inherited from Object)
MemberwiseClone()(Inherited from Object)
ToString()(Inherited from ValueType)
WithExplicitAccessibility(Accessibility, IComparer<SyntaxKind>)Creates a new ModifierListInfo with accessibility modifiers updated.
WithModifiers(SyntaxTokenList)Creates a new ModifierListInfo with the specified modifiers updated.
WithoutExplicitAccessibility()Creates a new ModifierListInfo with accessibility modifiers removed.