public void Append(NodeResult segments) { if (!(segments is null)) { contents.AddRange(segments); } }
public void RecalculateOutput() { var outputNode = GetOutputNode(); CachedOutput = outputNode.CachedOutput; OutputChanged?.Invoke(this, EventArgs.Empty); }
public NodeResultBuilder(NodeResult contents) { if (contents is null) { this.contents = new List <RegexSegment>(); } else { this.contents = new List <RegexSegment>(contents); } }
public void Prepend(NodeResult segments) { contents.InsertRange(0, segments); }