Safe reporting PSI elements in KEWA

This commit is contained in:
Vladimir Dolzhenko
2021-09-28 22:04:06 +02:00
committed by teamcity
parent 20871dd555
commit 5dc2442872
16 changed files with 63 additions and 52 deletions
@@ -57,12 +57,12 @@ object DecompiledLightClassesFactory {
innerClass != null,
{ "Could not find corresponding inner/nested class " + relativeFqName + " in class " + decompiledClassOrObject.fqName + "\nFile: " + decompiledClassOrObject.containingKtFile.virtualFile.name },
{
it.withAttachment("decompiledClassOrObject.txt", decompiledClassOrObject.text)
it.withPsiAttachment("decompiledClassOrObject.txt", decompiledClassOrObject)
it.withAttachment("fileClass.txt", decompiledClassOrObject.containingFile::class)
it.withAttachment("file.txt", decompiledClassOrObject.containingFile.text)
it.withAttachment("root.txt", rootLightClassForDecompiledFile.text)
it.withPsiAttachment("file.txt", decompiledClassOrObject.containingFile)
it.withPsiAttachment("root.txt", rootLightClassForDecompiledFile)
it.withAttachment("currentName.txt", current.name)
it.withAttachment("current.txt", current.text)
it.withPsiAttachment("current.txt", current)
it.withAttachment("innerClasses.txt", current.innerClasses.map { psiClass -> psiClass.name })
it.withAttachment("innerName.txt", name.asString())
},