Added comments.

This commit is contained in:
Evgeny Gerashchenko
2015-03-03 19:15:22 +03:00
parent 6ee4d92f36
commit 2b522f2d5e
2 changed files with 6 additions and 0 deletions
@@ -58,6 +58,9 @@ public object DescriptorToSourceUtils {
}
// NOTE this is also used by KDoc
// Returns PSI element for descriptor. If there are many relevant elements (e.g. it is fake override
// with multiple declarations), finds any of them. It can't find declarations in builtins or decompiled code.
// In IDE, use DescriptorToSourceUtilsIde instead.
platformStatic
public fun descriptorToDeclaration(descriptor: DeclarationDescriptor): PsiElement? {
for (declarationDescriptor in getEffectiveReferencedDescriptors(descriptor.getOriginal())) {