Example #1
0
        public static bool ContainsOnlyWhitespaceOrEndOfLineTrivia(SyntaxNode node, TextSpan?span = null)
        {
            ContainsOnlyWhitespaceOrEndOfLineTriviaWalker walker = ContainsOnlyWhitespaceOrEndOfLineTriviaWalker.GetInstance(span ?? node.FullSpan);

            walker.Visit(node);

            bool result = walker.Result;

            ContainsOnlyWhitespaceOrEndOfLineTriviaWalker.Free(walker);

            return(result);
        }