[Analysis API] add diagnostic tests for unresolved reference inside primary constructor
^KT-62437
This commit is contained in:
committed by
Space Team
parent
45a59f0a55
commit
1a01dd4dd4
+19
@@ -0,0 +1,19 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (2,15-27)
|
||||
UNRESOLVED_REFERENCE text ranges: [(23,35)]
|
||||
PSI: KtNameReferenceExpression at (2,15-27)
|
||||
for PSI element of type KtNameReferenceExpression at (3,10-20)
|
||||
UNRESOLVED_REFERENCE text ranges: [(45,55)]
|
||||
PSI: KtNameReferenceExpression at (3,10-20)
|
||||
for PSI element of type KtNameReferenceExpression at (4,10-20)
|
||||
UNRESOLVED_REFERENCE text ranges: [(65,75)]
|
||||
PSI: KtNameReferenceExpression at (4,10-20)
|
||||
for PSI element of type KtNameReferenceExpression at (5,15-30)
|
||||
UNRESOLVED_REFERENCE text ranges: [(90,105)]
|
||||
PSI: KtNameReferenceExpression at (5,15-30)
|
||||
for PSI element of type KtNameReferenceExpression at (6,12-21)
|
||||
UNRESOLVED_REFERENCE text ranges: [(117,126)]
|
||||
PSI: KtNameReferenceExpression at (6,12-21)
|
||||
for PSI element of type KtNameReferenceExpression at (7,12-21)
|
||||
UNRESOLVED_REFERENCE text ranges: [(138,147)]
|
||||
PSI: KtNameReferenceExpression at (7,12-21)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class A(
|
||||
@property:PropertyAnno
|
||||
@get:GetterAnno
|
||||
@set:SetterAnno
|
||||
@setparam:SetterParamAnno
|
||||
@field:FieldAnno
|
||||
@param:ParamAnno
|
||||
var prop: Int,
|
||||
)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (7,12-21)
|
||||
UNRESOLVED_REFERENCE text ranges: [(138,147)]
|
||||
PSI: KtNameReferenceExpression at (7,12-21)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (4,5-15)
|
||||
UNRESOLVED_REFERENCE text ranges: [(90,100)]
|
||||
PSI: KtNameReferenceExpression at (4,5-15)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class IJProject(val init: () -> Unit = {})
|
||||
|
||||
class KotlinIDE : IJProject(init = {
|
||||
anySymbols
|
||||
})
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (6,17-27)
|
||||
UNRESOLVED_REFERENCE text ranges: [(147,157)]
|
||||
PSI: KtNameReferenceExpression at (6,17-27)
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
open class IJProject(val init: () -> Unit = {})
|
||||
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
class KotlinIDE : IJProject(init = {
|
||||
fun foo() {
|
||||
val f = anySymbols
|
||||
}
|
||||
})
|
||||
+1
@@ -0,0 +1 @@
|
||||
Diagnostics from elements:
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class IJProject(val init: () -> Unit = {})
|
||||
|
||||
class KotlinIDE() : IJProject(init = {
|
||||
anySymbols
|
||||
})
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (4,5-15)
|
||||
UNRESOLVED_REFERENCE text ranges: [(92,102)]
|
||||
PSI: KtNameReferenceExpression at (4,5-15)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
open class IJProject(val init: () -> Unit = {})
|
||||
|
||||
class KotlinIDE : IJProject {
|
||||
constructor() : super(init = {
|
||||
anySymbols
|
||||
})
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (5,9-19)
|
||||
UNRESOLVED_REFERENCE text ranges: [(122,132)]
|
||||
PSI: KtNameReferenceExpression at (5,9-19)
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
open class IJProject(val init: () -> Unit = {})
|
||||
|
||||
@Suppress("UNUSED_VARIABLE")
|
||||
class KotlinIDE() : IJProject(init = {
|
||||
fun foo() {
|
||||
val f = anySymbols
|
||||
}
|
||||
})
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtNameReferenceExpression at (6,17-27)
|
||||
UNRESOLVED_REFERENCE text ranges: [(149,159)]
|
||||
PSI: KtNameReferenceExpression at (6,17-27)
|
||||
Reference in New Issue
Block a user