Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addFile: function(file){
console.info("compiling '" + file + "...")
var text = fs.readFileSync(file, "utf8");
var stream = new Stream(text);
var module = oc.compileModule(
stream,
this.__rtl,
this.__resolveModule.bind(this),
function(e){this.__handleErrors(file, e);}.bind(this)
);
if (!module)
return undefined;
this.__code += module.code();
var symbol = module.symbol();
this.__modules[symbol.id()] = symbol.info();
return symbol.info();
},
code: function(){return this.__rtl.generate() + this.__code;},