[core] convert CompoundExpressionRegistry to constexpr hash map
This commit is contained in:
@@ -16,8 +16,7 @@ bool isExpression(const Convertible& value) {
|
||||
optional<std::string> name = toString(arrayMember(value, 0));
|
||||
if (!name) return false;
|
||||
|
||||
return getExpression(*name) ||
|
||||
(CompoundExpressionRegistry::definitions.find(*name) != CompoundExpressionRegistry::definitions.end());
|
||||
return isExpression(*name) || CompoundExpression::exists(*name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user