atom/language-java

Function call + array accessor + new operator introduces extra meta.function-call.java scopes

Closed this issue · 3 comments

Description

public class A {
    void f() {
        int a = 1;
        g(education[new Random()]);
        g(education[new Random()]);
        g(education[new Random()]);
        g(education[new Random()]);
        g(education[new Random()]);
        g(education[new Random()]);
        g(education[new Random()]);
        g(education[new Random()]);
        int a = 1;
    }

    void g(Object o) {
        int a = 1;
    }
}

image

Expected behavior: [What you expect to happen]

As you can see, although the highlight is still correct, there are more meta.function-call.java than we need.

Can you include the language-java version that you are testing against?

This is a weird one. I will have a look.