09acea5548
FirVisibilityChecker::isVisible checked if a private declaration can be accessed at a use site by matching class ids of the private declaration's owner with the use site's containing class declarations. When the private declaration is defined in an enum entry and used in the same entry, its owner class id has the enum entry name, but the use site is in an FirAnonymousObject, which has "anonymous" as the class id. This causes visibility check to fail. This PR fixes owner class ids of declarations defined in enum entries to be the same as normal anonymous objects.