Bug 79752 Need access to type binding of anonymous enumerations
enum XXX { A { void foo() {}}; } - currently there is now API to access the typ[e binding of the anonymous enum created by { void foo() {}} To make anonymous enums more consistent with AnonymousClassDeclaration the EnumConstantDeclaration should have a subnode AnonymousEnumDeclaration. The AnonymousEnumDeclaration would then resolve to a ITypeBinding. As with type declarations there should be an abstract class AbstractAnonymousTypeDeclaration which works as a super class for AnonymousEnumDeclaration and AnonymousTypeDeclaration.
org.eclipse.jdt.ui.tests.refactoring/resources/ExtractMethodWorkSpace/ExtractMethodTests/validSelection_out/A_test363.java
package validSelection_out;
public class A_test363 {
	public Object foo() {
		return extracted();
	}
	protected Class extracted() {
		return A_test363.class;
	}
}