marko/compiler/ast/ThisExpression.js

19 lines
292 B
JavaScript

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