[preview] IDEA-259969 Reflective preview APIs are incorrectly reported as errors

This patch extracts PreviewFeatureVisitorBase to the top level class. In the visitor there used to be a special case for the new expression in order to reduce the number of warnings/errors, but it appeared to be useless, since the logic to deduce the preview feature element is too complicated. We might need to circle back to it if users complain about the number of warnings in their code.

GitOrigin-RevId: 3355caedc7eae3de197f652cc6af7ae605f64971
This commit is contained in:
Nikita Eshkeev
2021-02-12 20:51:48 +03:00
committed by intellij-monorepo-bot
parent 9b63667d37
commit fd24430a7d
9 changed files with 205 additions and 169 deletions

View File

@@ -9,4 +9,5 @@ public interface FirstPreviewFeature {
}
void f();
static void g() {}
public static final String KEY = "value";
}

View File

@@ -9,4 +9,5 @@ public interface FirstPreviewFeatureReflective {
}
void f();
static void g() {}
public static final String KEY = "value";
}

View File

@@ -9,4 +9,5 @@ public interface FirstPreviewFeature {
}
void f();
static void g() {}
public static final String KEY = "value";
}