Example #1
0
 public void VisitSynonym(TypeSynonym t)
 {
     foreach (var typeParameter in t.TypeParameters)
     {
         typeParameter.AcceptVisitor(this);
     }
 }
Example #2
0
        //////////////////////////////////////////////////////////////////////////
        //////////////////////////////////////////////////////////////////////////
        private void dumpTypeSynonym(TypeSynonym ts)
        {
            string rep = ts.name;

            foreach (var tp in ts.typeParameters)
            {
                rep += " " + tp.name;
            }
            rep += " = " + toBoogie(ts.type);
            file.WriteLine("type {0};", rep);
        }