示例#1
0
 private static void ValidateMeta(Command c)
 {
     if (!c.HasMeta(Meta.PRELOAD) && !c.HasMeta(NOSTART))
     {
         ValidateKey(c, TYPE);
         ValidateKey(c, STAGE);
     }
 }
示例#2
0
 private static void ValidateKey(Command c, string key)
 {
     if (!c.HasMeta(key))
     {
         throw new ParseException
                   ("missing required meta-key '" + key + "', 'noStart' or 'preload'");
     }
 }