marko/compiler/ast/ThisExpression.js
Patrick Steele-Idem c386da875e Fixes #349 - Inline Marko template compilation support
Also changed how JavaScript code is generated
2016-08-19 10:50:28 -06:00

23 lines
343 B
JavaScript

'use strict';
var Node = require('./Node');
class ThisExpression extends Node {
constructor(def) {
super('ThisExpression');
}
generateCode(codegen) {
return this;
}
writeCode(writer) {
writer.write('this');
}
toString() {
return 'this';
}
}
module.exports = ThisExpression;