Beispiel #1
0
 public ANotBStep(ProducerStep <TContext> a, ProducerStep <TContext> b) : this(null, a, b)
 {
 }
Beispiel #2
0
        public OneOfStep <TContext> Add(ProducerStep <TContext> choice)
        {
            choices.Add(choice);

            return(this);
        }
Beispiel #3
0
 public ANotBStep(string name, ProducerStep <TContext> a, ProducerStep <TContext> b) : base(name)
 {
     this.a = a;
     this.b = b;
 }
Beispiel #4
0
 public virtual bool MayDeferTo(ProducerStep <TContext> descendant)
 {
     return(SubStepTree.Any(e => descendant.Equals(e)));
 }
Beispiel #5
0
 public OneOrMoreStep(ProducerStep <TContext> child) : this(null, child)
 {
 }
Beispiel #6
0
 public OneOrMoreStep(string name, ProducerStep <TContext> child) : base(name)
 {
     this.child = child;
 }
Beispiel #7
0
        public SequenceStep <TContext> Add(ProducerStep <TContext> step, bool isOptional = false)
        {
            items.Add(new SequenceStepItem <TContext>(step, isOptional));

            return(this);
        }
Beispiel #8
0
 public SequenceStepItem(ProducerStep <TContext> step, bool isOptional)
 {
     this.step       = step;
     this.isOptional = isOptional;
 }