SyntaxExtensions.TryGetContainingList(SyntaxTrivia, SyntaxTriviaList, Boolean, Boolean) Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.Core.dll
Gets a SyntaxTriviaList the specified trivia is contained in.
public static bool TryGetContainingList(this Microsoft.CodeAnalysis.SyntaxTrivia trivia, out Microsoft.CodeAnalysis.SyntaxTriviaList triviaList, bool allowLeading = true, bool allowTrailing = true)
Parameters
trivia SyntaxTrivia
triviaList SyntaxTriviaList
allowLeading Boolean
If true, trivia can be part of leading trivia.
allowTrailing Boolean
If true, trivia can be part of trailing trivia.