merge<T> method
Implementation
merge<T>(ConstructType<T> obj, String knot) {
final idx = _idx[obj.name];
final knotIdx = _idx[knot];
if (idx == null) {
throw 'Missing type index for $obj';
}
if (knotIdx == null) {
throw 'Missing type index for $knot';
}
_typs[idx] = _typs[knotIdx];
// Delete the type.
_typs.removeAt(knotIdx); // js: _typs.splice(knotIdx, 1);
_idx.remove(knot);
}