Minor. Remove class ClassifierQualifier and create special ClassValueReceiver

This commit is contained in:
Stanislav Erokhin
2016-02-22 19:10:12 +03:00
parent 2f0ae6f176
commit 8c5339cccf
8 changed files with 68 additions and 74 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2015 JetBrains s.r.o.
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -252,7 +252,7 @@ fun CallTypeAndReceiver<*, *>.receiverTypes(
val receiverType =
bindingContext.getType(receiverExpression) ?:
(bindingContext.get(BindingContext.QUALIFIER, receiverExpression) as? ClassQualifier)?.let {
it.classifier.classValueType
it.descriptor.classValueType
} ?:
return emptyList()
listOf(ExpressionReceiver.create(receiverExpression, receiverType, bindingContext))