refs #36 imports refined and optimized, circular imports are supported.

This commit is contained in:
sergeych committed 2025-07-07 15:01:27 +03:00
1 parent 1e2cb5e420
commit ef6bc5c468
9 files changed
+227 -165

No files matched your search

+6 -3
View File
@@ -1,6 +1,9 @@
import junit.framework.TestCase.assertEquals
import kotlinx.coroutines.runBlocking
import net.sergeych.lyng.*
import net.sergeych.lyng.ModuleScope
import net.sergeych.lyng.Source
import net.sergeych.lyng.pacman.InlineSourcesImportProvider
import net.sergeych.lyng.toSource
import kotlin.test.Test
class OtherTests {
@@ -18,8 +21,8 @@ class OtherTests {
fun bar() { "bar1" }
""".trimIndent()
val pm = InlineSourcesPacman(
Pacman.emptyAllowAll, listOf(
val pm = InlineSourcesImportProvider(
listOf(
Source("foosrc", foosrc),
Source("barsrc", barsrc),
))