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