Safe reporting PSI elements in KEWA
This commit is contained in:
committed by
teamcity
parent
20871dd555
commit
5dc2442872
+4
-4
@@ -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())
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user