Scripting: fix string script source location

fixes proper script definition discovery for expressions and other
scripts created from a string.
This commit is contained in:
Ilya Chernikov
2023-07-07 12:48:05 +02:00
committed by Space Team
parent f420b6c709
commit 0d7a5c6b1b
2 changed files with 4 additions and 12 deletions
@@ -108,7 +108,7 @@ open class StringScriptSource(val source: String, override val name: String? = n
override val text: String get() = source
override val locationId: String? = null
override val locationId: String? get() = name
override fun equals(other: Any?): Boolean =
this === other || (other as? StringScriptSource)?.let { text == it.text && name == it.name && locationId == it.locationId } == true