|
28 | 28 | #include "absl/strings/string_view.h" |
29 | 29 | #include "absl/types/optional.h" |
30 | 30 | #include "absl/types/span.h" |
31 | | -#include "checker/internal/format_type_name.h" |
32 | 31 | #include "common/decl.h" |
| 32 | +#include "common/format_type_name.h" |
33 | 33 | #include "common/standard_definitions.h" |
34 | 34 | #include "common/type.h" |
35 | 35 | #include "common/type_kind.h" |
@@ -657,14 +657,14 @@ bool TypeInferenceContext::AssignabilityContext::IsAssignable(const Type& from, |
657 | 657 | std::string TypeInferenceContext::DebugString() const { |
658 | 658 | return absl::StrCat( |
659 | 659 | "type_parameter_bindings: ", |
660 | | - absl::StrJoin( |
661 | | - type_parameter_bindings_, "\n ", |
662 | | - [](std::string* out, const auto& binding) { |
663 | | - absl::StrAppend( |
664 | | - out, binding.first, " (", binding.second.name, ") -> ", |
665 | | - checker_internal::FormatTypeName( |
666 | | - binding.second.type.value_or(Type(TypeParamType("none"))))); |
667 | | - })); |
| 660 | + absl::StrJoin(type_parameter_bindings_, "\n ", |
| 661 | + [](std::string* out, const auto& binding) { |
| 662 | + absl::StrAppend( |
| 663 | + out, binding.first, " (", binding.second.name, |
| 664 | + ") -> ", |
| 665 | + cel::FormatTypeName(binding.second.type.value_or( |
| 666 | + Type(TypeParamType("none"))))); |
| 667 | + })); |
668 | 668 | } |
669 | 669 |
|
670 | 670 | void TypeInferenceContext::AssignabilityContext:: |
|
0 commit comments