fez-lisp 1.5.119 → 1.5.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/types.js +14 -13
package/package.json
CHANGED
package/src/types.js
CHANGED
@@ -44,7 +44,8 @@ export const toTypeNames = (type) => {
|
|
44
44
|
case UNKNOWN:
|
45
45
|
return 'Unknown'
|
46
46
|
case COLLECTION:
|
47
|
-
return '
|
47
|
+
return 'Array'
|
48
|
+
// return '[]'
|
48
49
|
case ANY:
|
49
50
|
return 'Any'
|
50
51
|
default:
|
@@ -1184,18 +1185,18 @@ export const SPECIAL_FORM_TYPES = {
|
|
1184
1185
|
|
1185
1186
|
export const formatSubType = (T) => {
|
1186
1187
|
switch (T[0]) {
|
1187
|
-
case COLLECTION:
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1197
|
-
|
1198
|
-
|
1188
|
+
// case COLLECTION:
|
1189
|
+
// return `[${
|
1190
|
+
// T[1] instanceof Set
|
1191
|
+
// ? [...T[1]]
|
1192
|
+
// .map((x) =>
|
1193
|
+
// x === COLLECTION
|
1194
|
+
// ? formatSubType([x])
|
1195
|
+
// : toTypeNamesAnyToUknown(x)
|
1196
|
+
// )
|
1197
|
+
// .join(' ')
|
1198
|
+
// : toTypeNamesAnyToUknown(ANY)
|
1199
|
+
// }]`
|
1199
1200
|
case ATOM:
|
1200
1201
|
return `${
|
1201
1202
|
T[1] instanceof Set
|