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`");
|
||||
},
|
||||
item(item) {
|
||||
const newItem = this.itemInner(item);
|
||||
this.ast().itemsById.set(item.id, item);
|
||||
const newItem = this.itemInner(item);
|
||||
this.ast().itemsById.set(item.id, newItem);
|
||||
return newItem;
|
||||
},
|
||||
itemInner(item) {
|
||||
|
|
|
|||
10
src/index.ts
10
src/index.ts
|
|
@ -12,15 +12,11 @@ import { exec } from "child_process";
|
|||
|
||||
const INPUT = `
|
||||
function main() = (
|
||||
owo.uwu.main();
|
||||
owo.owo();
|
||||
prIntln(0);
|
||||
);
|
||||
|
||||
mod owo (
|
||||
mod uwu (
|
||||
function main() =;
|
||||
);
|
||||
function owo() = ;
|
||||
function prIntln(x: Int) = (
|
||||
print("\n");
|
||||
);
|
||||
`;
|
||||
|
||||
|
|
|
|||
6
test.nil
6
test.nil
|
|
@ -1,8 +1,4 @@
|
|||
extern mod std;
|
||||
|
||||
mod uwu;
|
||||
|
||||
mod owo {}
|
||||
mod owo ();
|
||||
|
||||
function main() = (
|
||||
prIntln(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue