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