mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 14:24:47 +08:00
Small refactoring
This commit is contained in:
@@ -17,16 +17,15 @@ export default class PinReferenceEntity extends IEntity {
|
||||
this.pinGuid = pinGuid
|
||||
}
|
||||
|
||||
/** @returns {P<PinReferenceEntity>} */
|
||||
static createGrammar() {
|
||||
return /** @type {P<PinReferenceEntity>} */(
|
||||
P.seq(
|
||||
SymbolEntity.grammar,
|
||||
P.whitespace,
|
||||
GuidEntity.grammar
|
||||
)
|
||||
.map(([objectName, _1, pinGuid]) => new this(objectName, pinGuid))
|
||||
.label("PinReferenceEntity")
|
||||
return P.seq(
|
||||
SymbolEntity.grammar,
|
||||
P.whitespace,
|
||||
GuidEntity.grammar
|
||||
)
|
||||
.map(([objectName, _1, pinGuid]) => new this(objectName, pinGuid))
|
||||
.label("PinReferenceEntity")
|
||||
}
|
||||
|
||||
doSerialize() {
|
||||
|
||||
Reference in New Issue
Block a user