Beispiel #1
0
 protected PCondIsNullSXQ(PrimitiveIsNullS predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Beispiel #2
0
 public static SCode Make(PrimitiveIsNullS predicate, SCode consequent, Quotation alternative)
 {
     return
         new PCondIsNullSXQ (predicate, consequent, alternative);
 }
Beispiel #3
0
 protected PCondIsNullSS(PrimitiveIsNullS predicate, StaticVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentOffset = consequent.Offset;
 }
Beispiel #4
0
 public static SCode Make(PrimitiveIsNullS predicate, StaticVariable consequent, SCode alternative)
 {
     return
         new PCondIsNullSS (predicate, consequent, alternative);
 }
Beispiel #5
0
 public static SCode Make(PrimitiveIsNullS predicate, Argument0 consequent, SCode alternative)
 {
     return
         new PCondIsNullSA0 (predicate, consequent, alternative);
 }
Beispiel #6
0
 protected PCondIsNullSQ(PrimitiveIsNullS predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Beispiel #7
0
 protected PCondIsNullSA0(PrimitiveIsNullS predicate, Argument0 consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Beispiel #8
0
 public static SCode Make(PrimitiveIsNullS predicate, Argument consequent, SCode alternative)
 {
     return
         (consequent is Argument0) ? PCondIsNullSA0.Make (predicate, (Argument0) consequent, alternative) :
         new PCondIsNullSA (predicate, consequent, alternative);
 }
Beispiel #9
0
 protected PCondIsNullSA(PrimitiveIsNullS predicate, Argument consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentOffset = consequent.Offset;
 }
Beispiel #10
0
 public static SCode Make(PrimitiveIsNullS predicate, SCode consequent, SCode alternative)
 {
     return
         //(predicate is PrimitiveIsNullA0) ? PCondIsNullA0.Make ((PrimitiveIsNullA0) predicate, consequent, alternative) :
         //(predicate is PrimitiveIsNullA1) ? PCondIsNullA1.Make ((PrimitiveIsNullA1) predicate, consequent, alternative) :
         (consequent is Argument) ? PCondIsNullSA.Make (predicate, (Argument) consequent, alternative) :
         (consequent is Quotation) ? PCondIsNullSQ.Make (predicate, (Quotation) consequent, alternative) :
         (consequent is StaticVariable) ? PCondIsNullSS.Make (predicate, (StaticVariable) consequent, alternative) :
         (alternative is Quotation) ? PCondIsNullSXQ.Make (predicate, consequent, (Quotation) alternative) :
         new PCondIsNullS (predicate, consequent, alternative);
 }
Beispiel #11
0
 protected PCondIsNullS(PrimitiveIsNullS predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.predicateRandName = predicate.rand0Name;
     this.predicateRandOffset = predicate.rand0Offset;
 }