/// <summary> /// Returns the applicable span at the provided position. /// </summary> /// <returns>A tracking span, or null if there is no token at the /// provided position.</returns> internal static ITrackingSpan GetApplicableSpan(this ITextSnapshot snapshot, ITrackingPoint point) { return(snapshot.GetApplicableSpan(point.GetPosition(snapshot))); }
/// <summary> /// Returns the applicable span at the provided position. /// </summary> /// <returns>A tracking span, or null if there is no token at the /// provided position.</returns> internal static ITrackingSpan GetApplicableSpan(this ITextSnapshot snapshot, ITrackingPoint point, bool completeWord) { return(snapshot.GetApplicableSpan(point.GetPosition(snapshot), completeWord)); }