Skip to main content

SyntaxExtensions.GetPreprocessingMessageTrivia Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
GetPreprocessingMessageTrivia(EndRegionDirectiveTriviaSyntax)Gets preprocessing message for the specified endregion directive if such message exists.
GetPreprocessingMessageTrivia(RegionDirectiveTriviaSyntax)Gets preprocessing message for the specified region directive if such message exists.

GetPreprocessingMessageTrivia(EndRegionDirectiveTriviaSyntax)

Gets preprocessing message for the specified endregion directive if such message exists.

public static Microsoft.CodeAnalysis.SyntaxTrivia GetPreprocessingMessageTrivia(this Microsoft.CodeAnalysis.CSharp.Syntax.EndRegionDirectiveTriviaSyntax endRegionDirective)

Parameters

endRegionDirective EndRegionDirectiveTriviaSyntax

Returns

SyntaxTrivia

GetPreprocessingMessageTrivia(RegionDirectiveTriviaSyntax)

Gets preprocessing message for the specified region directive if such message exists.

public static Microsoft.CodeAnalysis.SyntaxTrivia GetPreprocessingMessageTrivia(this Microsoft.CodeAnalysis.CSharp.Syntax.RegionDirectiveTriviaSyntax regionDirective)

Parameters

regionDirective RegionDirectiveTriviaSyntax

Returns

SyntaxTrivia