comparison compiler.js @ 95:926b65fe92b4

Do some cleanup on JS backend
author Mike Pavone <pavone@retrodev.com>
date Tue, 24 Jul 2012 19:13:38 -0700
parents 9811040704ac
children 84b65ee8b78b
comparison
equal deleted inserted replaced
90:b5152f5ac138 95:926b65fe92b4
8 function modulefile(path, file) 8 function modulefile(path, file)
9 { 9 {
10 this.path = path; 10 this.path = path;
11 this.file = file; 11 this.file = file;
12 } 12 }
13
14 modulefile.prototype.populateSymbols = function (toplevel) {
15 if (!this.ast) {
16 this.ast = parseFile(this.path + '/' + this.file);
17 this.ast.populateSymbols(toplevel);
18 }
19 };
13 20
14 var toplevel = new topsymbols([]); 21 var toplevel = new topsymbols([]);
15 function topsymbols(moduledirs) 22 function topsymbols(moduledirs)
16 { 23 {
17 this.names = null; 24 this.names = null;