Esempio n. 1
0
        private IEnumerable<MemberDescription> GenMembers(TkMetaRec superTypeDef, int level)
        {
            Debug.Assert (superTypeDef.Sub != null);
            List<MemberDescription> members = new List<MemberDescription> ();
            if (level == 0)
                members.Add (new MemberDescription ("HEADER", 1, 1, new TypeDescription ("S_" + superTypeDef.Name, 0, 0, null)));

            foreach (TkMetaRec m in superTypeDef.Sub)
                members.Add (new MemberDescription (m.Name, 0, m.Cardinality, new TypeDescription ("S_" + m.Name, 0, 0, null)));

            return members;
        }
Esempio n. 2
0
 public TkMetaRec WithSub(TkMetaRec[] sub)
 {
     Sub = sub;
     return this;
 }