mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 08:47:49 +02:00
More to string types.
This commit is contained in:
parent
5042c69e56
commit
61bce04d28
@ -1134,11 +1134,13 @@ begin
|
||||
Exit('(empty)');
|
||||
|
||||
case Kind of
|
||||
tkString: Result := AsString;
|
||||
tkInteger: Result := IntToStr(AsNativeInt);
|
||||
tkBool: Result := BoolToStr(AsBoolean, True);
|
||||
tkClass: Result := AsObject.ClassName;
|
||||
tkClassRef: Result := AsClass.ClassName;
|
||||
tkEnumeration: Result := GetEnumName(TTypeInfoEnum(TypeInfo), AsOrdinal);
|
||||
tkFloat: Result := FloatToStr(AsExtended);
|
||||
tkInteger: Result := IntToStr(AsNativeInt);
|
||||
tkString: Result := AsString;
|
||||
else
|
||||
Result := '';
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user