mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
23 lines
343 B
JavaScript
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; |