Code cleanup.

This commit is contained in:
2023-05-19 00:46:45 +08:00
parent 5bed3cf05b
commit 0d0902735a
2 changed files with 6 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ namespace Cryville.Crtr {
public RulesetInterpreter(string src, Binder binder) : base(src, binder) { }
readonly List<RulesetSelector> s = new List<RulesetSelector>();
readonly List<string> a = new List<string>();
readonly HashSet<string> a = new HashSet<string>();
protected override object InterpretKey(Type type) {
if (type == typeof(Constraint))
return InterpretConstraintKey();
@@ -52,7 +52,7 @@ namespace Cryville.Crtr {
break;
}
ws();
if (Position == pp) throw new FormatException("Invalid selector or key format");
if (Position == pp) throw new FormatException("Invalid selector or key format.");
}
}
}