Attributes initialization refactoring (#19)

This commit is contained in:
barsdeveloper
2024-03-24 17:30:50 +01:00
committed by GitHub
parent 5973570911
commit cc9e3d833a
93 changed files with 4134 additions and 4082 deletions

View File

@@ -1,21 +1,15 @@
import Parsernostrum from "parsernostrum"
import GuidEntity from "./GuidEntity.js"
import IEntity from "./IEntity.js"
import Parsernostrum from "parsernostrum"
import PathSymbolEntity from "./PathSymbolEntity.js"
import AttributeInfo from "./AttributeInfo.js"
export default class PinReferenceEntity extends IEntity {
static attributes = {
...super.attributes,
objectName: {
type: PathSymbolEntity,
},
pinGuid: {
type: GuidEntity,
},
}
static {
this.cleanupAttributes(this.attributes)
objectName: AttributeInfo.createType(PathSymbolEntity),
pinGuid: AttributeInfo.createType(GuidEntity),
}
static grammar = this.createGrammar()