예제 #1
0
파일: Extensions.cs 프로젝트: xoriath/PTVS
 /// <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)));
 }
예제 #2
0
 /// <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));
 }