Annotation arguments resolve refactoring via ForceResolveUtil. Deptecated...Intention fixed accordingly

This commit is contained in:
Mikhail Glukhikh
2015-06-08 16:29:55 +03:00
parent 64b60718e3
commit 731e5d85a4
15 changed files with 84 additions and 8 deletions
@@ -262,7 +262,6 @@ public abstract class ElementResolver protected(
}
private fun doResolveAnnotations(annotations: Annotations) {
AnnotationResolver.resolveAnnotationsArguments(annotations)
ForceResolveUtil.forceResolveAllContents(annotations)
}
@@ -105,6 +105,7 @@ public class DeprecatedCallableAddReplaceWithIntention : JetSelfTargetingRangeIn
val bindingContext = this.analyze()
// val deprecatedConstructor = KotlinBuiltIns.getInstance().getDeprecatedAnnotation().getUnsubstitutedPrimaryConstructor()
for (entry in getAnnotationEntries()) {
entry.analyze()
val resolvedCall = entry.getCalleeExpression().getResolvedCall(bindingContext) ?: continue
if (!resolvedCall.getStatus().isSuccess()) continue
// if (resolvedCall.getResultingDescriptor() != deprecatedConstructor) continue