changes
This commit is contained in:
parent
bef91ed928
commit
290087f1a7
|
|
@ -118,12 +118,15 @@ public readonly struct Value : IValue, ISerialize<Value>, IDebug<string>
|
||||||
|
|
||||||
public string ToString(bool includeType)
|
public string ToString(bool includeType)
|
||||||
{
|
{
|
||||||
|
if (Type == T.Void)
|
||||||
|
return $"void";
|
||||||
|
|
||||||
if (!includeType)
|
if (!includeType)
|
||||||
return $"{AsDynamic(false)}";
|
return $"{AsDynamic(false)}";
|
||||||
|
|
||||||
string type = Type.ToString();
|
string type = Type.ToString();
|
||||||
if (Type.HasFlag(T.Pointer))
|
if (Type.HasFlag(T.Pointer))
|
||||||
type = Ptr.Value?.Type.ToString() ?? "NullPtr";
|
type = Ptr.Value?.Type.ToString() ?? "ptr:null";
|
||||||
|
|
||||||
return $"<{type}, {AsDynamic(false) ?? "null"}>";
|
return $"<{type}, {AsDynamic(false) ?? "null"}>";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue