function containsIdentifier(node) {
  // @ts-expect-error
  return node.id || node.identifier;
}
Checks whether we are a Declaration (like class X {}) or Declarator (like const x = 88)
@param {SwcNode} node
@returns {boolean}