UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

46 lines 1.09 kB
import { BidirectionalCollection } from "../Collections/BidirectionalCollection.js"; /** * Represents a collection of items. * * @template TNode * The type of the nodes. * * @template TItem * The type of the item provided by the nodes. */ export class NodeCollection extends BidirectionalCollection { /** * Initializes a new instance of the {@link NodeCollection `NodeCollection<TNode, TItem>`} class. * * @param owner * The owner of the collection. */ constructor(owner) { super(owner); } /** * @inheritdoc * * @param child * The child whose parent to return. * * @returns * The parent of the {@link child `child`}. */ GetParent(child) { return child === null || child === void 0 ? void 0 : child.Parent; } /** * @inheritdoc * * @param child * The child whose parent is to be set. * * @param parent * The parent to set. */ SetParent(child, parent) { child.Parent = parent; } } //# sourceMappingURL=NodeCollection.js.map