コード例 #1
0
 internal SourceContext Append(SourceContext other) => new SourceContext(other, this);
コード例 #2
0
 public SourceContext Push(SourceContext newContext) =>
 newContext.kind == Kind.Collapsible && newContext.SourceLines[0] == this.SourceLines[0]
                         ? this
                         : new SourceContext(newContext, this);
コード例 #3
0
 private SourceContext(SourceContext parent, SourceContext child)
 {
     this.SourceLines = parent.SourceLines.Concat(child.SourceLines).ToList();
 }
コード例 #4
0
 private SourceContext(SourceContext newContext, SourceContext oldContext)
 {
     this.SourceLines = newContext.SourceLines.Concat(oldContext.SourceLines).ToList();
     this.kind        = Kind.Aggregate;
 }