KT-63269: implementation for SIRGenerator with top-level functions

KT-63269: add test generator

Merge-request: KT-MR-12945
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2023-11-16 17:42:39 +00:00
committed by Space Team
parent cc14f11e2a
commit 7c15e3f229
18 changed files with 314 additions and 37 deletions
@@ -0,0 +1,12 @@
// FILE: one.kt
package namespace
fun foo(arg1: Int) = println("")
fun foo(arg1: Double) = println("")
// FILE: two.kt
package other.namespace
fun foo(arg1: Int) = println("")
fun foo(arg1: Double) = println("")
@@ -0,0 +1,4 @@
[namespace, foo]
[namespace, foo]
[other, namespace, foo]
[other, namespace, foo]
@@ -0,0 +1,12 @@
// FILE: one.kt
package com.awesome.namespace
fun foo() = println("")
fun bar() = ""
// FILE: two.kt
package com.awesome.other.namespace
fun foo() = ""
@@ -0,0 +1,3 @@
[com, awesome, namespace, foo]
[com, awesome, namespace, bar]
[com, awesome, other, namespace, foo]
@@ -0,0 +1,3 @@
public fun foo_public() = println("")
internal fun foo_internal() = println("")
private fun foo_private() = println("")
@@ -0,0 +1 @@
[foo_public]
@@ -0,0 +1 @@
fun foo() = println("")
@@ -0,0 +1 @@
[foo]