Beispiel #1
0
        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);
        }
Beispiel #2
0
        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());
        }
Beispiel #3
0
        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));
        }