mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
20 lines
380 B
JavaScript
20 lines
380 B
JavaScript
'use strict';
|
|
|
|
var Node = require('./Node');
|
|
|
|
class ContainerNode extends Node {
|
|
constructor(def) {
|
|
super('ContainerNode');
|
|
this.body = this.makeContainer(def.body);
|
|
}
|
|
|
|
generateCode(codegen) {
|
|
return codegen.genereateCode(this.body);
|
|
}
|
|
|
|
walk(walker) {
|
|
this.body = walker.walk(this.body);
|
|
}
|
|
}
|
|
|
|
module.exports = ContainerNode; |