Small refactoring

This commit is contained in:
barsdeveloper
2024-09-08 22:28:42 +02:00
parent 2114abef5c
commit 19ef3bd10e
43 changed files with 542 additions and 504 deletions

View File

@@ -28,12 +28,11 @@ export default class KeyBindingEntity extends IEntity {
/** @type {InstanceType<typeof KeyBindingEntity.attributes.Key>} */ this.Key
}
/** @returs {P<KeyBindingEntity>} */
static createGrammar() {
return /** @type {P<KeyBindingEntity>} */(
P.alt(
SymbolEntity.grammar.map(identifier => new this({ Key: identifier })),
Grammar.createEntityGrammar(this)
)
return P.alt(
SymbolEntity.grammar.map(identifier => new this({ Key: identifier })),
Grammar.createEntityGrammar(this),
)
}
}