Пример #1
0
 private void WriteIdentifierDeclarations(IEnumerable <Identifier> identifiers)
 {
     foreach (Identifier id in identifiers)
     {
         if (id is MemoryIdentifier)
         {
             continue;
         }
         writer.Write("Identifier {0} = ", id.Name);
         Method("Local");
         id.DataType.Accept(this);
         writer.WriteLine(", \"{0}\");", id.Name);
     }
 }
Пример #2
0
 private void WriteIdentifierDeclarations(Procedure proc, IEnumerable <Identifier> identifiers)
 {
     foreach (Identifier id in identifiers)
     {
         if (id is MemoryIdentifier)
         {
             continue;
         }
         writer.Write("Identifier {0} = ", id.Name);
         if (id == proc.Frame.FramePointer)
         {
             writer.Write("m.Frame.FramePointer");
         }
         else
         {
             Method("Local");
             id.DataType.Accept(this);
             writer.Write(", \"{0}\")", id.Name);
         }
         writer.WriteLine(";");
     }
 }