[Analysis API] Add more ContextCollector tests inspired by dependentCopy
As the on-air analysis is obsolete, related tests are going to be deleted. Here we add cases not yet covered by 'ContextCollector' tests.
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
class ScriptClass {
|
||||
val memberProperty = 4
|
||||
}
|
||||
|
||||
fun scriptFunction() = 42
|
||||
fun unusedScriptFunction(p: String) = 22
|
||||
|
||||
scriptFunction()
|
||||
|
||||
fun foo(i: Int, action: (Int) -> Unit) {
|
||||
action(i)
|
||||
}
|
||||
|
||||
foo(scriptFunction()) {
|
||||
<expr>scriptFunction()</expr>
|
||||
}
|
||||
Reference in New Issue
Block a user