Example #1
0
        public override void VisitCreditPaymentRules(CreditPaymentRules n)
        {
            SetupInternalClass(n, "CreditPaymentRules");

            var bondType = _moduleBuilder.GetType("Bond");
            var ruleType = typeof(Rule <, ,>).MakeGenericType(bondType, bondType, bondType);

            AddListMemberToInternalClass("CreditPaymentRules", "InterestRules", ruleType);
            AddListMemberToInternalClass("CreditPaymentRules", "PrincipalRules", ruleType);

            n.Statements.Visit(this);
            _gen.Emit(OpCodes.Ret);
        }
Example #2
0
 public override string Print(int depth)
 {
     return("Program: "
            + NewLine(depth + 1)
            + Settings.Print(depth + 1)
            + NewLine(depth + 1)
            + Deal.Print(depth + 1)
            + NewLine(depth + 1)
            + Collateral.Print(depth + 1)
            + NewLine(depth + 1)
            + Securities.Print(depth + 1)
            + NewLine(depth + 1)
            + CreditPaymentRules.Print(depth + 1)
            + NewLine(depth + 1)
            + Simulation.Print(depth + 1)
            + NewLine(depth + 1));
 }
Example #3
0
 public override void VisitCreditPaymentRules(CreditPaymentRules n)
 {
     VisitDeclarationClass(n);
 }