Пример #1
0
 static string NewValue(this LineOrientedFormatter.Item2 item, SourcePart part)
 {
     var subResult = "";
     if(item.Part.Position >= part.Position)
         subResult += item.NewHeader;
     subResult += part.Intersect(item.Part).Id;
     return subResult;
 }
Пример #2
0
 internal Trimmed(Token token, SourcePart sourcePart)
 {
     Token = token;
     SourcePart = sourcePart.Intersect(Token.SourcePart)
         ?? Token.SourcePart.Start.Span(0);
 }