Exemple #1
0
 public void Append(NodeResult segments)
 {
     if (!(segments is null))
     {
         contents.AddRange(segments);
     }
 }
Exemple #2
0
        public void RecalculateOutput()
        {
            var outputNode = GetOutputNode();

            CachedOutput = outputNode.CachedOutput;
            OutputChanged?.Invoke(this, EventArgs.Empty);
        }
Exemple #3
0
 public NodeResultBuilder(NodeResult contents)
 {
     if (contents is null)
     {
         this.contents = new List <RegexSegment>();
     }
     else
     {
         this.contents = new List <RegexSegment>(contents);
     }
 }
Exemple #4
0
 public void Prepend(NodeResult segments)
 {
     contents.InsertRange(0, segments);
 }