Files
ueblueprint/js/entity/NullEntity.js
barsdeveloper ad4ba2c46d WIP
2024-06-06 20:10:17 +02:00

18 lines
426 B
JavaScript

import P from "parsernostrum"
import IEntity from "./IEntity.js"
export default class NullEntity extends IEntity {
// @ts-expect-error
static grammar = P.reg(new RegExp(String.raw`\(${P.whitespaceInlineOpt.getParser().regexp.source}\)`))
.map(v => new this())
toString(
insideString = false,
indentation = "",
printKey = this.Self().printKey,
) {
return "()"
}
}