示例#1
0
 public static new SCode Make(Primitive2 rator, SCode rand0, SCode rand1)
 {
     return
         ((rand0 is Argument) ? PrimitiveRecordRefA.Make(rator, (Argument)rand0, rand1) :
          (rand0 is StaticVariable) ? PrimitiveRecordRefS.Make(rator, (StaticVariable)rand0, rand1) :
          (rand1 is Quotation) ? PrimitiveRecordRefXQ.Make(rator, rand0, (Quotation)rand1) :
          new PrimitiveRecordRef(rator, rand0, rand1));
 }
示例#2
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
 {
     return
         (new PCondRecordRefXQQ(predicate, consequent, alternative));
 }
示例#3
0
 protected PCondRecordRefXQQ(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
示例#4
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
 {
     return
         ((consequent is Quotation) ? PCondRecordRefXQQ.Make(predicate, (Quotation)consequent, alternative) :
          new PCondRecordRefXQ(predicate, consequent, alternative));
 }
示例#5
0
 protected PCondRecordRefXQ(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.rand1Value = predicate.offset;
 }
示例#6
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
 {
     return
         new PCondRecordRefXQQ (predicate, consequent, alternative);
 }
示例#7
0
 protected PCondRecordRefXQQ(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
示例#8
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
 {
     return
         (consequent is Quotation) ? PCondRecordRefXQQ.Make (predicate, (Quotation) consequent, alternative) :
         new PCondRecordRefXQ (predicate, consequent, alternative);
 }
示例#9
0
 protected PCondRecordRefXQ(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.rand1Value = predicate.offset;
 }