summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-12-27 13:41:54 -0500
committerGlenn Smith <glenn@vector35.com>2024-12-27 14:14:42 -0500
commit2356259101133816400254823086942099919442 (patch)
treee191779d2b8df5cdd8328aa114887264cbc5d1a7 /lang
parent5716430455143230163265790501642777327084 (diff)
One case of needing the type printer in pseudo rust
Diffstat (limited to 'lang')
-rw-r--r--lang/rust/pseudorust.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/rust/pseudorust.cpp b/lang/rust/pseudorust.cpp
index 703f1efd..837a7932 100644
--- a/lang/rust/pseudorust.cpp
+++ b/lang/rust/pseudorust.cpp
@@ -576,7 +576,13 @@ void PseudoRustFunction::GetExprText(const HighLevelILInstruction& instr, HighLe
{
tokens.AppendOpenParen();
tokens.AppendOpenParen();
- for (auto& token: instr.GetType()->GetTokens(GetArchitecture()->GetStandalonePlatform()))
+ RustTypePrinter printer;
+ auto typeTokens = printer.GetTypeTokens(
+ instr.GetType(),
+ GetArchitecture()->GetStandalonePlatform(),
+ QualifiedName()
+ );
+ for (auto& token: typeTokens)
{
tokens.Append(token);
}