Exemple #1
0
        public Location MapSecondaryToPrimaryLocation(Location secondaryLocation)
        {
            TextSpan[] span = new TextSpan[1];
            _bufferCoordinator.MapSecondaryToPrimarySpan(Utils.SpanFromLocation(secondaryLocation), span);

            return(Utils.LocationFromSpan(_primaryFileIndex, span[0]));
        }
Exemple #2
0
 internal TextSpan GetPrimarySpan(TextSpan secondary)
 {
     TextSpan[] primary = new TextSpan[1];
     ErrorHandler.ThrowOnFailure(bufferCoordinator.MapSecondaryToPrimarySpan(secondary, primary));
     return(primary[0]);
 }