示例#1
0
        /// <summary>
        /// Creates a snapshot span from an other snapshot span and a text span
        /// </summary>
        private static TagSpan <Z80AsmTokenTag> CreateSpan(ITextSnapshotLine line,
                                                           TextSpan text, Z80AsmTokenType tokenType)
        {
            var tagSpan = new Span(line.Start.Position + text.Start, text.End - text.Start);
            var span    = new SnapshotSpan(line.Snapshot, tagSpan);
            var tag     = new Z80AsmTokenTag(tokenType);

            return(new TagSpan <Z80AsmTokenTag>(span, tag));
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public Z80AsmTokenTag(Z80AsmTokenType type)
 {
     Type = type;
 }