98:	referencesById: Record<string, BaseNode>
142:		this.referencesById = { [this.id]: this }
190:			Object.assign(this.referencesById, this.children[i].referencesById)
306:	get references(): BaseNode[] {
307:		return Object.values(this.referencesById)
		this.referencesById = { [this.id]: this }

		this.shallowReferences =
			this.hasKind("structure") ?
				[this as BaseNode, ...(this.children as never)]
			:	this.children.reduce<BaseNode[]>(
					(acc, child) => appendUniqueNodes(acc, child.shallowReferences),
					[this]
				)

		const isStructural = this.isStructural()

		this.flatRefs = []
