File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11# module system
22
3- Mod -- has loader
43Place and Transition -- has modId
54
65Mod has definitions: Map<string, Definition>
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ export function createMod(options: {
99 url : URL
1010 // text: string
1111 // stmts: Array<Stmt>
12- // loader: Loader
12+ loader : Loader
1313} ) : Mod {
1414 const mod = {
15- // loader: options.loader,
15+ loader : options . loader ,
1616 url : options . url ,
1717 // text: options.text,
1818 // stmts: options.stmts,
Original file line number Diff line number Diff line change 11import { Fetcher } from "../fetcher"
22// import { execute } from "../lang/execute"
3- import { Mod } from "../lang/mod"
4- import { createMod } from "../lang/mod/createMod"
3+ import { Mod , createMod } from "../lang/mod"
54// import { parseStmts } from "../lang/syntax"
65
76export class Loader {
@@ -27,7 +26,7 @@ export class Loader {
2726
2827 // const stmts = parseStmts(text)
2928 const mod = createMod ( {
30- // loader: this,
29+ loader : this ,
3130 url,
3231 // text,
3332 // stmts,
You can’t perform that action at this time.
0 commit comments