mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
groovy debugger eval: qualify class references in smart cast type generics (x as List<Foo>)
This commit is contained in:
+2
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user