comparison cbackend.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 f23ecd4e22af
children 84b65ee8b78b
comparison
equal deleted inserted replaced
90:b5152f5ac138 95:926b65fe92b4
765 ] 765 ]
766 }); 766 });
767 toplevel.names['os'] = os; 767 toplevel.names['os'] = os;
768 } 768 }
769 769
770 modulefile.prototype.populateSymbols = function (toplevel) {
771 if (!this.ast) {
772 this.ast = parseFile(this.path + '/' + this.file);
773 this.ast.populateSymbols(toplevel);
774 }
775 };
776
777 modulefile.prototype.toC = function(){ 770 modulefile.prototype.toC = function(){
778 this.populateSymbols(toplevel);
779 return this.ast.toCModuleInstance(); 771 return this.ast.toCModuleInstance();
780 }; 772 };
781 773
782 function processUsedToplevel(toplevel) 774 function processUsedToplevel(toplevel)
783 { 775 {