Fix folders of items wrt the itemid map

This commit is contained in:
nora 2023-07-31 13:13:30 +02:00
parent cbbda39688
commit 6bdbf14ecb
4 changed files with 37 additions and 5 deletions

View file

@ -113,7 +113,10 @@ function resolveModule(cx: Context, contents: Item[]): Item[] {
const resolver: Folder = {
...DEFAULT_FOLDER,
item(item) {
ast() {
return cx.ast;
},
itemInner(item) {
switch (item.kind) {
case "function": {
const params = item.node.params.map(({ name, span, type }) => ({