Generate a name similar to the run time names for anonymous classes, when encountering a classes with no identifier.
Before this PR a class with no identifier would not be set as the current scope so it's content would instead be assigned to which ever previous scope was set (usually a method) which could lead to crashes when trying to cast it to a class.
Fixes #3398
Generate a name similar to the run time names for anonymous classes, when encountering a classes with no identifier.
Before this PR a class with no identifier would not be set as the current scope so it's content would instead be assigned to which ever previous scope was set (usually a method) which could lead to crashes when trying to cast it to a class.