fix folder

This commit is contained in:
nora 2023-07-31 15:13:45 +02:00
parent f5cce667a6
commit 903fe75747
3 changed files with 6 additions and 14 deletions

View file

@ -467,8 +467,8 @@ export const DEFAULT_FOLDER: Folder = {
throw new Error("folders need to implement `ast`"); throw new Error("folders need to implement `ast`");
}, },
item(item) { item(item) {
const newItem = this.itemInner(item); const newItem = this.itemInner(item);
this.ast().itemsById.set(item.id, item); this.ast().itemsById.set(item.id, newItem);
return newItem; return newItem;
}, },
itemInner(item) { itemInner(item) {

View file

@ -12,15 +12,11 @@ import { exec } from "child_process";
const INPUT = ` const INPUT = `
function main() = ( function main() = (
owo.uwu.main(); prIntln(0);
owo.owo();
); );
mod owo ( function prIntln(x: Int) = (
mod uwu ( print("\n");
function main() =;
);
function owo() = ;
); );
`; `;

View file

@ -1,8 +1,4 @@
extern mod std; mod owo ();
mod uwu;
mod owo {}
function main() = ( function main() = (
prIntln(0); prIntln(0);