assertVariables(res, new String[] { "A", "B", "C", "e"});
assertVariables(res, new String[] { "A", "B", "C"});
	public void testSwitchOnEnum() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1.ae", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1.ae;\n");		buf.append("public enum E {\n");		buf.append("    A, B, C;\n");		buf.append("    public static final int X=1;\n");		buf.append("}\n");				buf.append("class A {\n");		buf.append("    public void goo(E e) {\n");		buf.append("        switch (e) {\n");		buf.append("            case A:\n;");		buf.append("                break;\n");		buf.append("        }\n");		buf.append("    }\n");				buf.append("}\n");		ICompilationUnit compilationUnit= pack1.createCompilationUnit("E.java", buf.toString(), false, null);						CompilationUnit astRoot= createAST(compilationUnit);		assertNoProblems(astRoot);		{			String str= "A:";			int offset= buf.toString().indexOf(str);				int flags= ScopeAnalyzer.VARIABLES;			IBinding[] res= new ScopeAnalyzer(astRoot).getDeclarationsInScope(offset, flags);						assertVariables(res, new String[] { "A", "B", "C", "e"});		}		{			String str= "break;";			int offset= buf.toString().indexOf(str);				int flags= ScopeAnalyzer.VARIABLES;			IBinding[] res= new ScopeAnalyzer(astRoot).getDeclarationsInScope(offset, flags);						assertVariables(res, new String[] {"e"});		}	}	