protected override void SetPosition(Snapshot snapshot, int position) { VSSnapshot vs = snapshot as VSSnapshot; if (vs == null) { throw new ArgumentException("snapshot must be a VSSnapshot"); } this.point = vs.TextSnapshot.CreateTrackingPoint(position, PointTrackingMode.Positive); }
public override GLSL.Text.Span GetSpan(Snapshot snapshot) { VSSnapshot vs = snapshot as VSSnapshot; if (vs == null) { throw new ArgumentException("snapshot must be a VSSnapshot"); } return(this.TrackingSpan.GetSpan(vs.TextSnapshot).ToGLSLSpan()); }
public override int GetPosition(Snapshot snapshot) { VSSnapshot vs = snapshot as VSSnapshot; if (vs == null) { throw new ArgumentException("snapshot must be a VSSnapshot"); } return(this.point.GetPosition(vs.TextSnapshot)); }