rooibos-roku
Version:
simple, flexible, fun brightscript test framework for roku scenegraph apps - roku brighterscript plugin
25 lines • 993 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RawCodeExpression = void 0;
const brighterscript_1 = require("brighterscript");
const brighterscript = require("brighterscript");
const source_map_1 = require("source-map");
class RawCodeExpression extends brighterscript_1.Expression {
constructor(source, sourceFile, range = brighterscript.Range.create(1, 1, 1, 99999)) {
super();
this.source = source;
this.sourceFile = sourceFile;
this.range = range;
}
clone() {
return new RawCodeExpression(this.source, this.sourceFile, this.range);
}
transpile(state) {
return [new source_map_1.SourceNode(this.range.start.line + 1, this.range.start.character, this.sourceFile ? this.sourceFile.pathAbsolute : state.srcPath, this.source)];
}
walk(visitor, options) {
//nothing to walk
}
}
exports.RawCodeExpression = RawCodeExpression;
//# sourceMappingURL=RawCodeExpression.js.map