Skip to main content

SyntaxAccessibility.WithExplicitAccessibility<TNode>(TNode, Accessibility, IComparer<SyntaxKind>) Method

Containing Type: SyntaxAccessibility

Assembly: Roslynator.CSharp.dll

Creates a new node with the specified explicit accessibility updated.

public static TNode WithExplicitAccessibility<TNode>(TNode node, Microsoft.CodeAnalysis.Accessibility newAccessibility, System.Collections.Generic.IComparer<Microsoft.CodeAnalysis.CSharp.SyntaxKind>? comparer = null) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

node TNode

newAccessibility Accessibility

comparer IComparer<SyntaxKind>

Returns

TNode