import P from "parsernostrum" import Grammar from "../serialization/Grammar.js" import BooleanEntity from "./BooleanEntity.js" import GuidEntity from "./GuidEntity.js" import IEntity from "./IEntity.js" import StringEntity from "./StringEntity.js" export default class VariableReferenceEntity extends IEntity { static attributes = { ...super.attributes, MemberScope: StringEntity, MemberName: StringEntity.withDefault(), MemberGuid: GuidEntity, bSelfContext: BooleanEntity, } static grammar = this.createGrammar() constructor(values) { super(values) /** @type {InstanceType} */ this.MemberScope /** @type {InstanceType} */ this.MemberName /** @type {InstanceType} */ this.MemberGuid /** @type {InstanceType} */ this.bSelfContext } /** @returns {P} */ static createGrammar() { return Grammar.createEntityGrammar(this).label("VariableReferenceEntity") } }