code: static boolean mayBeObjectLitKey(Node node) {
      switch (node.getToken()) {
        case STRING_KEY:
        case GETTER_DEF:
        case SETTER_DEF:
        case MEMBER_FUNCTION_DEF:
          return true;
        default:
          return false;
      }
    }
docs: Determines whether a node represents a possible object literal key (e.g. key1 in {key1: value1,
  key2: value2}). Computed properties are excluded here (see b/111621528). This method does not
  check whether the node is actually in an object literal! it also returns true for object
  pattern keys, and member functions/getters in ES6 classes.
  
  @param node A node