32 static unordered_map<string, AttributeDescriptor> attr_map = {
110 string attr_str(attr.identifier().str());
111 if (
auto it = attr_map.find(attr_str); it != attr_map.end()) {
112 auto [str_type, res_type, expected_param_count] = it->second;
116 if (expected_param_count >= 0) {
117 if (param_count != expected_param_count) {
127 int max_param_count =
abs(expected_param_count);
128 if (param_count < 1 || param_count > max_param_count) {
154 result.value.res_type = res_type;
155 result.value.srt_type = str_type;
160 result.value.param1 = param1;
164 result.value.param2 = param2;
168 result.value.param3 = param3;