internal override void CheckFunctionExpr(Dictionary<string, FastSort> vars, HashSet<string> attrNames, HashSet<string> patternTrees, FastPgm pgm) { EnumDef def = pgm.FindEnumDef(_sort.name); if (!def.elems.Contains((string)val)) throw new FastParseException(_sort.name.Location, string.Format("unspecified enum value '{0}.{1}'", sort.name, val)); }