mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
32 lines
669 B
JavaScript
32 lines
669 B
JavaScript
'use strict';
|
|
|
|
var Node = require('./Node');
|
|
|
|
class AttributePlaceholder extends Node {
|
|
constructor(def) {
|
|
super('AttributePlaceholder');
|
|
this.value = def.value;
|
|
this.escape = def.escape;
|
|
}
|
|
|
|
generateCode(codegen) {
|
|
codegen.generateCode(this.value);
|
|
}
|
|
|
|
walk(walker) {
|
|
this.value = walker.walk(this.value);
|
|
}
|
|
|
|
isCompoundExpression() {
|
|
return this.value.isCompoundExpression();
|
|
}
|
|
|
|
/**
|
|
* "noOutput" should be true if the Node.js does not result in any HTML or Text output
|
|
*/
|
|
get noOutput() {
|
|
return this.value.noOutput;
|
|
}
|
|
}
|
|
|
|
module.exports = AttributePlaceholder; |