Пример #1
0
 public void FromBuilder(TokenInterProductionCollectionBuilder builder)
 {
     for (var i = 0; i < builder.EntryCount; i++)
     {
         Add(builder[i]);
     }
 }
            public static TokenInterProductionCollectionBuilder operator |(TokenInterProductionCollectionBuilder op1, TokenInterProductionCollectionBuilder op2)
            {
                var result = new TokenInterProductionCollectionBuilder();

                for (var i = 0; i < op1.EntryCount; i++)
                {
                    result.Add(op1[i]);
                }

                for (var j = 0; j < op2.EntryCount; j++)
                {
                    result.Add(op2[j]);
                }

                return(result);
            }