mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 16:44:49 +08:00
20 lines
478 B
JavaScript
20 lines
478 B
JavaScript
import P from "parsernostrum"
|
|
import IEntity from "./IEntity.js"
|
|
|
|
export default class NullEntity extends IEntity {
|
|
|
|
static grammar = /** @type {P<NullEntity>} */(
|
|
// @ts-expect-error
|
|
P.reg(new RegExp(String.raw`\(${P.whitespaceInlineOpt.getParser().regexp.source}\)`))
|
|
.map(v => new this())
|
|
)
|
|
|
|
toString(
|
|
insideString = false,
|
|
indentation = "",
|
|
printKey = this.Self().printKey,
|
|
) {
|
|
return "()"
|
|
}
|
|
}
|