private void AddWhitespaceWarning(HighlightedWarning highlightedWarning, ITreeNode[] nodes)
 {
     var node = nodes.FirstOrDefault(n => n.IsWhitespaceToken());
     if (node != null)
         AddHighlighting(highlightedWarning, node);
 }
示例#2
0
 public static T FirstOrDefault <T>(this ITreeNode <T> @this, Func <T, bool> predicate)
 {
     return(@this.FirstOrDefault(predicate, TreeTraverseOrder.BreadthFirst, default(T)));
 }
 private void AddNonWhitespaceWarning(HighlightedWarning highlightedWarning, ITreeNode[] nodes)
 {
     var node = nodes.FirstOrDefault(n => !n.IsWhitespaceToken());
     AddHighlighting(highlightedWarning, node);
 }