public static bool IsWhitespaceOrEndOfLine(this SyntaxTrivia trivia) { return(trivia.IsEndOfLine() || trivia.IsWhitespace()); }