This commit is contained in:
barsdeveloper
2024-05-31 15:09:48 +02:00
parent 1c2778fbf8
commit ecc71b76d1
45 changed files with 1191 additions and 1078 deletions

View File

@@ -1,18 +1,20 @@
import P from "parsernostrum"
import GuidEntity from "./GuidEntity.js"
import IEntity from "./IEntity.js"
import PathSymbolEntity from "./PathSymbolEntity.js"
import SymbolEntity from "./SymbolEntity.js"
export default class PinReferenceEntity extends IEntity {
static grammar = P.seq(
PathSymbolEntity.grammar,
SymbolEntity.grammar,
P.whitespace,
GuidEntity.grammar
).map(([objectName, _1, pinGuid]) => new this(objectName, pinGuid))
)
.map(([objectName, _1, pinGuid]) => new this(objectName, pinGuid))
.label("PinReferenceEntity")
/**
* @param {PathSymbolEntity} objectName
* @param {SymbolEntity} objectName
* @param {GuidEntity} pinGuid
*/
constructor(objectName = null, pinGuid = null) {
@@ -20,4 +22,12 @@ export default class PinReferenceEntity extends IEntity {
this.objectName = objectName
this.pinGuid = pinGuid
}
toString(
insideString = false,
indentation = "",
printKey = this.Self().printKey,
) {
return this.objectName.toString() + " " + this.pinGuid.toString()
}
}