mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
fix folder
This commit is contained in:
parent
f5cce667a6
commit
903fe75747
3 changed files with 6 additions and 14 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
10
src/index.ts
10
src/index.ts
|
|
@ -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() = ;
|
|
||||||
);
|
);
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
||||||
6
test.nil
6
test.nil
|
|
@ -1,8 +1,4 @@
|
||||||
extern mod std;
|
mod owo ();
|
||||||
|
|
||||||
mod uwu;
|
|
||||||
|
|
||||||
mod owo {}
|
|
||||||
|
|
||||||
function main() = (
|
function main() = (
|
||||||
prIntln(0);
|
prIntln(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue