示例#1
0
        public static GLSLSpan ToGLSLSpan(this SnapshotSpan span)
        {
            if (span.Start.Position == span.End.Position)
            {
                return(GLSLSpan.Create(span.Start.Position, span.End.Position));
            }

            return(GLSLSpan.Create(span.Start.Position, span.End.Position - 1));
        }
示例#2
0
 public static GLSLSpan ToGLSLSpan(this VSSpan span)
 {
     return(GLSLSpan.Create(span.Start, span.End - 1));
 }