[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:
Yan Zhulanow
2024-01-11 17:34:34 +09:00
committed by Space Team
parent 0502da474b
commit 08727bf0be
23 changed files with 966 additions and 0 deletions
@@ -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>
}