Example #1
0
 public override void build()
 {
     kind = TermEnum(children[0]) == PTokE.OP_GT ? kindE.immediate : kindE.all;
     if (children.Length == 2)
     {
         typefilter = (children[1] as TypeNameNode).names;
     }
     if (children.Length > 2)
     {
         throw new Exception();
     }
 }
Example #2
0
 public override void build()
 {
     if (children.Length == 2)                  // unqualified
     {
         kind = kindE.any;
         name = TermPay(children[1]);
     }
     else if (children.Length == 3)             // qualified
     {
         kind = kindE_from_PTokE(TermEnum(children[1]));
         name = TermPay(children[2]);
     }
     else
     {
         throw new Exception();
     }
 }