[Analysis API] add diagnostic tests for inner Java class usage
^KT-62892
This commit is contained in:
committed by
Space Team
parent
6c7d1babf0
commit
7efbcad121
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtParameter at (11,25-61)
|
||||
UNUSED_PARAMETER text ranges: [(64,73)]
|
||||
PSI: KtParameter at (11,25-61)
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: issue/pack/RowIcon.java
|
||||
package issue.pack;
|
||||
|
||||
public class RowIcon {
|
||||
public class RClass {}
|
||||
}
|
||||
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun testJavaNestedClass(alignment: issue.pack.RowIcon.RClass) {
|
||||
}
|
||||
|
||||
fun checkIt() {
|
||||
testJavaNestedClass(issue.pack.RowIcon().RClass())
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtParameter at (13,25-61)
|
||||
UNUSED_PARAMETER text ranges: [(86,95)]
|
||||
PSI: KtParameter at (13,25-61)
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// MODULE: dep
|
||||
// FILE: issue/pack/RowIcon.java
|
||||
package issue.pack;
|
||||
|
||||
public class RowIcon {
|
||||
public class RClass {}
|
||||
}
|
||||
|
||||
// MODULE: main(dep)
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun testJavaNestedClass(alignment: issue.pack.RowIcon.RClass) {
|
||||
}
|
||||
|
||||
fun checkIt() {
|
||||
testJavaNestedClass(issue.pack.RowIcon().RClass())
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtDotQualifiedExpression at (17,25-54)
|
||||
ARGUMENT_TYPE_MISMATCH text ranges: [(169,198)]
|
||||
PSI: KtDotQualifiedExpression at (17,25-54)
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: issue/pack/RowIcon.java
|
||||
package issue.pack;
|
||||
|
||||
public class RowIcon {
|
||||
public class RClass {}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun testJavaNestedClass(alignment: issue.pack.RowIcon.RClass) {
|
||||
}
|
||||
|
||||
fun checkIt() {
|
||||
testJavaNestedClass(issue.pack.RowIcon().RClass())
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtDotQualifiedExpression at (19,25-54)
|
||||
ARGUMENT_TYPE_MISMATCH text ranges: [(171,200)]
|
||||
PSI: KtDotQualifiedExpression at (19,25-54)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtParameter at (11,25-61)
|
||||
UNUSED_PARAMETER text ranges: [(64,73)]
|
||||
PSI: KtParameter at (11,25-61)
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: issue/pack/RowIcon.java
|
||||
package issue.pack;
|
||||
|
||||
public class RowIcon {
|
||||
public static class RClass {}
|
||||
}
|
||||
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun testJavaNestedClass(alignment: issue.pack.RowIcon.RClass) {
|
||||
}
|
||||
|
||||
fun checkIt() {
|
||||
testJavaNestedClass(issue.pack.RowIcon.RClass())
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtParameter at (13,25-61)
|
||||
UNUSED_PARAMETER text ranges: [(86,95)]
|
||||
PSI: KtParameter at (13,25-61)
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// MODULE: dep
|
||||
// FILE: issue/pack/RowIcon.java
|
||||
package issue.pack;
|
||||
|
||||
public class RowIcon {
|
||||
public static class RClass {}
|
||||
}
|
||||
|
||||
// MODULE: main(dep)
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun testJavaNestedClass(alignment: issue.pack.RowIcon.RClass) {
|
||||
}
|
||||
|
||||
fun checkIt() {
|
||||
testJavaNestedClass(issue.pack.RowIcon.RClass())
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtDotQualifiedExpression at (17,25-52)
|
||||
ARGUMENT_TYPE_MISMATCH text ranges: [(169,196)]
|
||||
PSI: KtDotQualifiedExpression at (17,25-52)
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
// IGNORE_FE10
|
||||
// MODULE: lib
|
||||
// MODULE_KIND: LibraryBinary
|
||||
// FILE: issue/pack/RowIcon.java
|
||||
package issue.pack;
|
||||
|
||||
public class RowIcon {
|
||||
public static class RClass {}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: usage.kt
|
||||
package usage
|
||||
|
||||
fun testJavaNestedClass(alignment: issue.pack.RowIcon.RClass) {
|
||||
}
|
||||
|
||||
fun checkIt() {
|
||||
testJavaNestedClass(issue.pack.RowIcon.RClass())
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtDotQualifiedExpression at (19,25-52)
|
||||
ARGUMENT_TYPE_MISMATCH text ranges: [(171,198)]
|
||||
PSI: KtDotQualifiedExpression at (19,25-52)
|
||||
Reference in New Issue
Block a user