예제 #1
0
 /// <summary>
 /// Determines if the location falls inside a commented span.
 /// </summary>
 public bool IsLocationCommented(int location)
 => IntersectingBlockComments.Contains(span => span.Contains(location));
예제 #2
0
 /// <summary>
 /// Returns if the selection intersects with any block comments.
 /// </summary>
 public bool HasIntersectingBlockComments()
 => IntersectingBlockComments.Any();
 /// <summary>
 /// Returns if the selection intersects with any block comments.
 /// </summary>
 public bool HasIntersectingBlockComments()
 {
     return(IntersectingBlockComments.Any());
 }