public static SCode Make(PrimitiveIsRecordA predicate, SCode consequent, SCode alternative) { return (predicate is PrimitiveIsRecordA0) ? PCondIsRecordA0.Make ((PrimitiveIsRecordA0) predicate, consequent, alternative) : (predicate is PrimitiveIsRecordA1) ? PCondIsRecordA1.Make ((PrimitiveIsRecordA1) predicate, consequent, alternative) : (consequent is LexicalVariable) ? PCondIsRecordAL.Make (predicate, (LexicalVariable) consequent, alternative) : (consequent is Quotation) ? PCondIsRecordAQ.Make (predicate, (Quotation) consequent, alternative) : (alternative is LexicalVariable) ? PCondIsRecordASL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsRecordASQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsRecordA (predicate, consequent, alternative); }
public static SCode Make(PrimitiveIsRecordA predicate, Argument consequent, SCode alternative) { throw new NotImplementedException (); }
internal static PCondIsRecordA Make(PrimitiveIsRecordA predicate, SCode consequent, Quotation alternative) { return new PCondIsRecordASQ (predicate, consequent, alternative); }
protected PCondIsRecordAA(PrimitiveIsRecordA predicate, Argument consequent, SCode alternative) : base(predicate, consequent, alternative) { }
internal static PCondIsRecordA Make(PrimitiveIsRecordA predicate, SCode consequent, LexicalVariable lexicalVariable) { throw new NotImplementedException (); }
protected PCondIsRecordASQ(PrimitiveIsRecordA predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
protected PCondIsRecordAQQ(PrimitiveIsRecordA predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsRecordA predicate, Quotation consequent, Quotation alternative) { if (consequent.Quoted == alternative.Quoted) { Debug.WriteLine ("; Optimize (if <expr> <literal> <literal>) => (begin <expr> <literal>)"); return Sequence2.Make (predicate, consequent); } else if (Configuration.EnableTrueUnspecific && consequent.Quoted == Constant.Unspecific) { Debug.WriteLine ("; Optimize (if <expr> <unspecific> <literal>) => (begin <expr> <literal>)"); return Sequence2.Make (predicate, alternative); } else if (Configuration.EnableTrueUnspecific && alternative.Quoted == Constant.Unspecific) { Debug.WriteLine ("; Optimize (if <expr> <literal> <unspecific>) => (begin <expr> <literal>)"); return Sequence2.Make (predicate, consequent); } return new PCondIsRecordAQQ (predicate, consequent, alternative); }
protected PCondIsRecordAQL(PrimitiveIsRecordA predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsRecordA predicate, Quotation consequent, LexicalVariable alternative) { return new PCondIsRecordAQL (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsRecordA predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsRecordAQL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsRecordAQQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsRecordAQ (predicate, consequent, alternative); }
protected PCondIsRecordAQ(PrimitiveIsRecordA predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
public static SCode Make(PrimitiveIsRecordA predicate, LexicalVariable consequent, Quotation alternative) { throw new NotImplementedException (); }
protected PCondIsRecordAL1(PrimitiveIsRecordA predicate, LexicalVariable1 consequent, SCode alternative) : base(predicate, consequent, alternative) { }
protected PCondIsRecordAL(PrimitiveIsRecordA predicate, LexicalVariable consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentName = consequent.Name; this.consequentDepth = consequent.Depth; this.consequentOffset = consequent.Offset; }