});
}
- /** Adds the provided label(s) to this `Tag` as alternate labels. */
+ /**
+ * Adds the provided label(s) to this `Tag` as alternate labels, then
+ * returns this `Tag`.
+ */
addAltLabel(...labels) {
const altLabels = this.#data.altLabel;
let objectLabels = null; // initialized on first use
altLabels.add(literal);
}
}
+ return this;
}
/**
* Adds the provided tags to the list of tags that this `Tag` is
- * narrower than.
+ * narrower than, then returns this `Tag`.
*
* Arguments may be string identifiers or objects with an
* `.identifier` property.
}
}
}
+ return this;
}
- /** Adds the provided label(s) to this `Tag` as hidden labels. */
+ /**
+ * Adds the provided label(s) to this `Tag` as hidden labels, then
+ * returns this `Tag`.
+ */
addHiddenLabel(...labels) {
const hiddenLabels = this.#data.hiddenLabel;
let objectLabels = null; // initialized on first use
hiddenLabels.add(literal);
}
}
+ return this;
}
/**
* Adds the provided tags to the list of tags that this `Tag` is in
- * canon with.
+ * canon with, then returns this `Tag`.
*
* Arguments may be string identifiers or objects with an
* `.identifier` property.
}
}
}
+ return this;
}
/**
* Adds the provided tags to the list of tags that this `Tag`
- * involves.
+ * involves, then returns this `Tag`.
*
* Arguments may be string identifiers or objects with an
* `.identifier` property.
}
}
}
+ return this;
}
/** Yields the alternative labels of this `Tag`. */
/**
* Removes the provided string label(s) from this `Tag` as alternate
- * labels.
+ * labels, then returns this `Tag`.
*/
deleteAltLabel(...labels) {
const altLabels = this.#data.altLabel;
altLabels.delete(literal);
}
}
+ return this;
}
/**
* Removes the provided tags from the list of tags that this `Tag` is
- * narrower than.
+ * narrower than, then returns this `Tag`.
*
* Arguments may be string identifiers or objects with an
* `.identifier` property.
// Iterate over the provided tags and delete them.
broader.delete(toIdentifier($));
}
+ return this;
}
/**
* Removes the provided string label(s) from this `Tag` as hidden
- * labels.
+ * labels, then returns this `Tag`.
*/
deleteHiddenLabel(...labels) {
const hiddenLabels = this.#data.hiddenLabel;
hiddenLabels.delete(literal);
}
}
+ return this;
}
/**
* Removes the provided tags from the list of tags that this `Tag` is
- * in canon with.
+ * in canon with, then returns this `Tag`.
*
* Arguments may be string identifiers or objects with an
* `.identifier` property.
// Iterate over the provided tags and delete them.
inCanon.delete(toIdentifier($));
}
+ return this;
}
/**
* Removes the provided tags from the list of tags that this `Tag`
- * involves.
+ * involves, then returns this `Tag`.
*
* Arguments may be string identifiers or objects with an
* `.identifier` property.
// Iterate over the provided tags and delete them.
involves.delete(toIdentifier($));
}
+ return this;
}
/** Yields `Tag`s that are in canon of this `Tag`. */