public override void CaseAPreloadBankDecl(APreloadBankDecl node)
        {
            int i = 0;
            if (!(node.GetPlayer() is AIntConstExp))
            {
                errors.Add(new ErrorCollection.Error(node.GetBank(), currentSourceFile, LocRM.GetString("ErrorText14")));
            }
            else
            {
                i = int.Parse(((AIntConstExp) node.GetPlayer()).GetIntegerLiteral().Text);
            }

            data.BankPreloads.Add(new KeyValuePair<string, int>(node.GetBank().Text, i));
            node.Parent().RemoveChild(node);
        }
 public virtual void OutAPreloadBankDecl(APreloadBankDecl node)
 {
     DefaultOut(node);
 }
 public virtual void InAPreloadBankDecl(APreloadBankDecl node)
 {
     DefaultIn(node);
 }
 public override void CaseAPreloadBankDecl(APreloadBankDecl node)
 {
     InAPreloadBankDecl(node);
     if (node.GetPlayer() != null)
     {
         node.GetPlayer().Apply(this);
     }
     if (node.GetBank() != null)
     {
         node.GetBank().Apply(this);
     }
     if (node.GetToken() != null)
     {
         node.GetToken().Apply(this);
     }
     OutAPreloadBankDecl(node);
 }
 public virtual void CaseAPreloadBankDecl(APreloadBankDecl node)
 {
     DefaultCase(node);
 }
示例#6
0
 ArrayList New17()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList7 = (ArrayList) Pop();
     ArrayList nodeArrayList6 = (ArrayList) Pop();
     ArrayList nodeArrayList5 = (ArrayList) Pop();
     ArrayList nodeArrayList4 = (ArrayList) Pop();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TPreloadBank tpreloadbankNode2 = (TPreloadBank)nodeArrayList1[0];
     TStringLiteral tstringliteralNode3 = (TStringLiteral)nodeArrayList3[0];
     PExp pexpNode4 = (PExp)nodeArrayList5[0];
     APreloadBankDecl pdeclNode1 = new APreloadBankDecl (
       tpreloadbankNode2,
       tstringliteralNode3,
       pexpNode4
     );
     nodeList.Add(pdeclNode1);
     return nodeList;
 }