addClass(i) {
    const a = v.sanitizeText(i, F()), { className: u, type: l } = this.splitClassNameAndType(a);
    if (this.classes.has(u))
      return;
    const r = v.sanitizeText(u, F());
    this.classes.set(r, {
      id: r,
      type: l,
      label: r,
      text: `${r}${l ? `&lt;${l}&gt;` : ""}`,
      shape: "classBox",
      cssClasses: "default",
      methods: [],
      members: [],
      annotations: [],
      styles: [],
      domId: pe + r + "-" + Xe
    }), Xe++;
  }
Function called by parser when a node definition has been found.

@param id - Id of the class to add
@public