selfhost: migrate tool sources to directory packages
Build w6a and w6l from package-main directories and expose the wcc backend through a narrow package API so w6c and wwdump no longer import implementation files. Retarget the remaining load-bearing fixtures and example sources to directory packages; retain the one intentional flat compiler collision as an explicitly composed raw unit.
This commit is contained in:
@@ -7473,7 +7473,7 @@ fn asserttyped(c: *checker, n: *syntax.node, indot: bool) void = {
|
||||
};
|
||||
};
|
||||
|
||||
export fn checkinit(c: *checker, tc: *syntax.tctx) void = {
|
||||
fn checkinit(c: *checker, tc: *syntax.tctx) void = {
|
||||
c.tc = tc;
|
||||
c.top = syntax.newscope(nil);
|
||||
c.cur = c.top;
|
||||
@@ -7493,7 +7493,7 @@ export fn checkinit(c: *checker, tc: *syntax.tctx) void = {
|
||||
seedprimitives(c);
|
||||
};
|
||||
|
||||
export fn checkfile(c: *checker, file: *syntax.node) void = {
|
||||
fn checkfile(c: *checker, file: *syntax.node) void = {
|
||||
if (file == nil) { return; };
|
||||
if (file.kind != syntax.nkind.N_FILE) { return; };
|
||||
c.file = file;
|
||||
|
||||
Reference in New Issue
Block a user