rulesToRuleFlags static method
Convert rules to integer rule type.
Implementation
static int rulesToRuleFlags(List<String> rules) {
Map<String, int> ruleTypes = _ruleTypes;
int value = 0;
for (String rule in rules) {
if (_ruleTypes.containsKey(rule)) {
value |= ruleTypes[rule]!;
}
}
return value;
}