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