388 {
389 const auto &val = node.as<std::string>();
390 if (val ==
to_string(callee_type::constructor))
391 rhs = callee_type::constructor;
392 else if (val ==
to_string(callee_type::assignment))
393 rhs = callee_type::assignment;
394 else if (val ==
to_string(callee_type::operator_))
395 rhs = callee_type::operator_;
396 else if (val ==
to_string(callee_type::defaulted))
397 rhs = callee_type::defaulted;
398 else if (val ==
to_string(callee_type::static_))
399 rhs = callee_type::static_;
400 else if (val ==
to_string(callee_type::function))
401 rhs = callee_type::function;
402 else if (val ==
to_string(callee_type::function_template))
403 rhs = callee_type::function_template;
404 else if (val ==
to_string(callee_type::method))
405 rhs = callee_type::method;
406 else if (val ==
to_string(callee_type::lambda))
407 rhs = callee_type::lambda;
408 else if (val ==
to_string(callee_type::cuda_kernel))
409 rhs = callee_type::cuda_kernel;
410 else if (val ==
to_string(callee_type::cuda_device))
411 rhs = callee_type::cuda_device;
412 else
413 return false;
414
415 return true;
416 }