protected PCondIsNegativeL1SL(PrimitiveIsNegativeL1 predicate, SCode consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { this.alternativeName = alternative.Name; this.alternativeDepth = alternative.Depth; this.alternativeOffset = alternative.Offset; }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, SCode consequent, LexicalVariable alternative) { return (alternative is Argument) ? PCondIsNegativeL1SA.Make (predicate, consequent, (Argument) alternative) : (alternative is LexicalVariable1) ? PCondIsNegativeL1SL1.Make (predicate, consequent, (LexicalVariable1) alternative) : new PCondIsNegativeL1SL (predicate, consequent, alternative); }
PCondIsNegativeL1SA0(PrimitiveIsNegativeL1 predicate, SCode consequent, Argument0 alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, SCode consequent, Argument0 alternative) { return new PCondIsNegativeL1SA0 (predicate, consequent, alternative); }
public static SCode Make(PrimitiveIsNegativeL1 predicate, SCode consequent, SCode alternative) { return (consequent is LexicalVariable) ? PCondIsNegativeL1L.Make (predicate, (LexicalVariable) consequent, alternative) : (consequent is Quotation) ? PCondIsNegativeL1Q.Make (predicate, (Quotation) consequent, alternative) : (alternative is LexicalVariable) ? PCondIsNegativeL1SL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsNegativeL1SQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsNegativeL1 (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, SCode consequent, Argument alternative) { return (alternative is Argument0) ? PCondIsNegativeL1SA0.Make (predicate, consequent, (Argument0) alternative) : (alternative is Argument1) ? Unimplemented () : new PCondIsNegativeL1SA (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, Quotation quotation, LexicalVariable alternative) { throw new NotImplementedException (); }
PCondIsNegativeL1SQ(PrimitiveIsNegativeL1 predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsNegativeL1QL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsNegativeL1QQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsNegativeL1Q (predicate, consequent, alternative); }
protected PCondIsNegativeL1QL(PrimitiveIsNegativeL1 predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
protected PCondIsNegativeL1Q(PrimitiveIsNegativeL1 predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
protected PCondIsNegativeL1LQ(PrimitiveIsNegativeL1 predicate, LexicalVariable consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
protected PCondIsNegativeL1L(PrimitiveIsNegativeL1 predicate, LexicalVariable consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentName = consequent.Name; this.consequentDepth = consequent.Depth; this.consequentOffset = consequent.Offset; }
PCondIsNegativeL1SL1(PrimitiveIsNegativeL1 predicate, SCode consequent, LexicalVariable1 alternative) : base(predicate, consequent, alternative) { }
protected PCondIsNegativeL1QQ(PrimitiveIsNegativeL1 predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, SCode consequent, LexicalVariable1 alternative) { return new PCondIsNegativeL1SL1 (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsNegativeL1 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 PCondIsNegativeL1QQ (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsNegativeL1 predicate, SCode consequent, Quotation alternative) { return new PCondIsNegativeL1SQ (predicate, consequent, alternative); }
protected PCondIsNegativeL1(PrimitiveIsNegativeL1 predicate, SCode consequent, SCode alternative) : base(predicate, consequent, alternative) { }