mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Use attr helper and handle attribute escaping Also improved AST and added walking capability
15 lines
245 B
JavaScript
15 lines
245 B
JavaScript
'use strict';
|
|
|
|
var Node = require('./Node');
|
|
|
|
class ThisExpression extends Node {
|
|
constructor(def) {
|
|
super('ThisExpression');
|
|
}
|
|
|
|
generateCode(codegen) {
|
|
codegen.write('this');
|
|
}
|
|
}
|
|
|
|
module.exports = ThisExpression; |