mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[aia] eval plugin - logs
GitOrigin-RevId: 4062317fcc5e2729fd8c93c7bb594ce13e2c6278
This commit is contained in:
committed by
intellij-monorepo-bot
parent
253dd27b6f
commit
b2a33aa906
@@ -27,8 +27,8 @@ open class CodeFragmentFromPsiBuilder(private val project: Project, val language
|
||||
|
||||
val filePath = FilesHelper.getRelativeToProjectPath(project, file.path)
|
||||
val visitors = getVisitors().filter { it.language == language && it.feature == featureName }
|
||||
if (visitors.isEmpty()) throw IllegalStateException("No suitable visitors")
|
||||
if (visitors.size > 1) throw IllegalStateException("More than 1 suitable visitors")
|
||||
if (visitors.isEmpty()) throw IllegalStateException("No suitable visitors. language=$language, feature=$featureName")
|
||||
if (visitors.size > 1) throw IllegalStateException("More than 1 suitable visitors. language=$language, feature=$featureName. visitors=${visitors.joinToString { it.javaClass.simpleName }}")
|
||||
val fileTokens = getFileTokens(visitors.first(), psi)
|
||||
fileTokens.path = filePath
|
||||
fileTokens.text = file.text()
|
||||
|
||||
Reference in New Issue
Block a user