mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 00:24:48 +08:00
24 lines
666 B
JavaScript
Executable File
24 lines
666 B
JavaScript
Executable File
import P from "parsernostrum"
|
|
import GuidEntity from "./GuidEntity.js"
|
|
import IEntity from "./IEntity.js"
|
|
import PathSymbolEntity from "./PathSymbolEntity.js"
|
|
|
|
export default class PinReferenceEntity extends IEntity {
|
|
|
|
static grammar = P.seq(
|
|
PathSymbolEntity.grammar,
|
|
P.whitespace,
|
|
GuidEntity.grammar
|
|
).map(([objectName, _1, pinGuid]) => new this(objectName, pinGuid))
|
|
|
|
/**
|
|
* @param {PathSymbolEntity} objectName
|
|
* @param {GuidEntity} pinGuid
|
|
*/
|
|
constructor(objectName = null, pinGuid = null) {
|
|
super()
|
|
this.objectName = objectName
|
|
this.pinGuid = pinGuid
|
|
}
|
|
}
|