public Location MapSecondaryToPrimaryLocation(Location secondaryLocation) { TextSpan[] span = new TextSpan[1]; _bufferCoordinator.MapSecondaryToPrimarySpan(Utils.SpanFromLocation(secondaryLocation), span); return(Utils.LocationFromSpan(_primaryFileIndex, span[0])); }
internal TextSpan GetPrimarySpan(TextSpan secondary) { TextSpan[] primary = new TextSpan[1]; ErrorHandler.ThrowOnFailure(bufferCoordinator.MapSecondaryToPrimarySpan(secondary, primary)); return(primary[0]); }