mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
javac ast indices: search for lambda expressions; version #2 (with lambda hierarchy)
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
import java.util.function.IntSupplier;
|
||||
import java.util.Collections;
|
||||
|
||||
class Foo {
|
||||
|
||||
void m() {
|
||||
|
||||
Runnable r = Collections::emptyList;
|
||||
|
||||
Runnable r2 = () -> {
|
||||
|
||||
|
||||
IntSupplier s = () -> 1;
|
||||
|
||||
Runnable r3 = () -> {
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
IntSupplier s2 = () -> 1;
|
||||
}
|
||||
|
||||
void m2() {
|
||||
|
||||
Runnable r = () -> {
|
||||
|
||||
Runnable r3 = () -> {
|
||||
|
||||
IntSupplier s2 = () -> 1;
|
||||
|
||||
Runnable r4 = () -> {
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
IntSupplier s = () -> 1;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user