pardom
05/06/2019, 4:59 AMKtCallExpression
. Anyone know how?Ilmir Usmanov [JB]
05/06/2019, 5:03 AMKtExpression callee = expression.getCalleeExpression();
Call call = bindingContext.get(CALL, callee);
ResolvedCall<?> resolvedCall = bindingContext.get(RESOLVED_CALL, call);
return resolvedCall.getResultingDescriptor().getContainingDeclaration().getFqName().child(resolvedCall.getResultingDescriptor().getName());
pardom
05/06/2019, 5:06 AMCALL
from callee.KtFunction
for a KtCallExpression
. Is that possible?BindingContextUtils.getEnclosingFunctionDescriptor
🤔Ilmir Usmanov [JB]
05/06/2019, 5:36 AMCallChecker
and write necessary info to BindingContext
, so, on later stages you can retrieve it. But without any clue about what you want to achieve I cannot tell what is better.pardom
05/06/2019, 5:37 AMIlmir Usmanov [JB]
05/06/2019, 5:40 AMCallChecker
it is!pardom
05/06/2019, 5:41 AMIlmir Usmanov [JB]
05/06/2019, 5:48 AManalysisCompleted
, which is invoked after all analyses are, well, completed.pardom
05/06/2019, 5:49 AMKtFunction
instead?Ilmir Usmanov [JB]
05/06/2019, 5:58 AMgetParent
until KtElement is KtFunction.pardom
05/06/2019, 5:59 AMisPure
function works on KtFunction
, but I think it could be changed to work with a function descriptor.Ilmir Usmanov [JB]
05/06/2019, 6:09 AMAnnotated
pardom
05/06/2019, 6:18 AMIlmir Usmanov [JB]
05/06/2019, 6:20 AMpardom
05/06/2019, 6:22 AMelement.containingKtFile.virtualFilePath
for the path, but I haven’t found the line/col yet.MessageUtil.psiElementToMessageLocation(element)
Ilmir Usmanov [JB]
05/06/2019, 6:39 AMreportFromPlugin
for reporting. Like Parcelable plugin.raulraja
05/06/2019, 8:08 PMpardom
05/06/2019, 9:06 PMraulraja
05/07/2019, 9:18 AM