1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Added typeof_comptime const type

This commit is contained in:
Brian Fiete 2025-01-19 12:40:50 -08:00
parent a82cc0534d
commit c511773dad
10 changed files with 111 additions and 10 deletions

View file

@ -1457,6 +1457,13 @@ void BeDumpContext::ToString(StringImpl& str, BeValue* value, bool showType, boo
return;
}
if (auto constant = BeValueDynCast<BeTypeOfConstant>(value))
{
ToString(str, constant->GetType());
str += StrFormat(" typeof(%d)", constant->mBfTypeId);
return;
}
if (auto constant = BeValueDynCast<BeStringConstant>(value))
{
ToString(str, constant->GetType());