groovy debugger eval: qualify class references in smart cast type generics (x as List<Foo>)

This commit is contained in:
peter
2012-01-11 20:46:17 +01:00
parent de6699791d
commit 5b65124cba
2 changed files with 3 additions and 4 deletions
@@ -233,9 +233,8 @@ public class GroovyCodeFragmentFactory implements CodeFragmentFactory {
}
public void visitCodeReferenceElement(GrCodeReferenceElement refElement) {
if (refElement.getQualifier() != null) {
super.visitCodeReferenceElement(refElement);
} else {
super.visitCodeReferenceElement(refElement);
if (refElement.getQualifier() == null) {
PsiElement resolved = refElement.resolve();
if (resolved instanceof PsiClass) {
String qName = ((PsiClass)resolved).getQualifiedName();
@@ -286,7 +286,7 @@ new Runnable() {
return result
}
private String eval(final String codeText, String expected) throws EvaluateException {
private void eval(final String codeText, String expected) throws EvaluateException {
Semaphore semaphore = new Semaphore()
semaphore.down()