-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add collections to serialized standard extensions (#1452)
Bonus lazy static for standard registry BREAKING CHANGE: collections extension name made lowercase for consistency. ("Collections" -> "collections")
- Loading branch information
Showing
5 changed files
with
152 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
{ | ||
"version": "0.1.0", | ||
"name": "collections", | ||
"extension_reqs": [], | ||
"types": { | ||
"List": { | ||
"extension": "collections", | ||
"name": "List", | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"description": "Generic dynamically sized list of type T.", | ||
"bound": { | ||
"b": "FromParams", | ||
"indices": [ | ||
0 | ||
] | ||
} | ||
} | ||
}, | ||
"values": {}, | ||
"operations": { | ||
"pop": { | ||
"extension": "collections", | ||
"name": "pop", | ||
"description": "Pop from back of list", | ||
"signature": { | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"body": { | ||
"input": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "collections", | ||
"id": "List", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
} | ||
], | ||
"output": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "collections", | ||
"id": "List", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
}, | ||
{ | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
], | ||
"extension_reqs": [] | ||
} | ||
}, | ||
"binary": false | ||
}, | ||
"push": { | ||
"extension": "collections", | ||
"name": "push", | ||
"description": "Push to back of list", | ||
"signature": { | ||
"params": [ | ||
{ | ||
"tp": "Type", | ||
"b": "A" | ||
} | ||
], | ||
"body": { | ||
"input": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "collections", | ||
"id": "List", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
}, | ||
{ | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
], | ||
"output": [ | ||
{ | ||
"t": "Opaque", | ||
"extension": "collections", | ||
"id": "List", | ||
"args": [ | ||
{ | ||
"tya": "Type", | ||
"ty": { | ||
"t": "V", | ||
"i": 0, | ||
"b": "A" | ||
} | ||
} | ||
], | ||
"bound": "A" | ||
} | ||
], | ||
"extension_reqs": [] | ||
} | ||
}, | ||
"binary": false | ||
} | ||
} | ||
} |