mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
25 lines
392 B
JavaScript
25 lines
392 B
JavaScript
'use strict';
|
|
|
|
var Node = require('./Node');
|
|
|
|
class Identifier extends Node {
|
|
constructor(def) {
|
|
super('Identifier');
|
|
this.name = def.name;
|
|
}
|
|
|
|
generateCode(codegen) {
|
|
return this;
|
|
}
|
|
|
|
writeCode(writer) {
|
|
var name = this.name;
|
|
writer.write(name);
|
|
}
|
|
|
|
toString() {
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
module.exports = Identifier; |