Michael Nedzelsky
3dbb117598
fix KT-7042 Providing return type for property setter is not reported as error
...
#KT-7042 Fixed
2015-11-06 06:32:20 +03:00
Michael Nedzelsky
e6a2bd05d4
fix KT-9652 Warning to specify expected type as Any? when it is already Any?
...
#KT-9652 Fixed
2015-11-06 06:32:07 +03:00
Michael Nedzelsky
c318a13e6c
Error on using extension function type as an upper bound
2015-11-06 06:31:52 +03:00
Ilya Gorbunov
f3ff2e2e76
Replace deprecated join with joinToString
2015-11-06 01:12:00 +03:00
Stanislav Erokhin
55157df3eb
Removed MemberScope.ownerDescriptor
2015-11-06 00:01:35 +03:00
Stanislav Erokhin
22f78b148c
Removed usages of MemberScope.ownerDescriptor property.
2015-11-06 00:01:34 +03:00
Stanislav Erokhin
b3e69a5f5d
Created common supertype for HierarchicalScope and MemberScope-- ResolutionScope
2015-11-06 00:01:30 +03:00
Stanislav Erokhin
c4582d0e0c
Replace function MemberScope.getContainingDeclaration() to property ownerDescriptor
2015-11-06 00:01:30 +03:00
Valentin Kipyatkov
52dc23012f
Changed parsing of object and enum entries to drop "KtObjectDeclarationName"
2015-11-05 23:21:22 +03:00
Valentin Kipyatkov
58fc0b6ec8
Fixed special item after "super." not working for fake override super
2015-11-05 17:47:55 +03:00
Mikhail Glukhikh
5e9aa38950
More precise type handling for equality #KT-2311 Fixed
2015-11-05 17:29:34 +03:00
Stanislav Erokhin
2c3f58eeb7
Renamed methods in MemberScope from getSmth to getContributedSmth
2015-11-05 14:34:00 +03:00
Stanislav Erokhin
6f9d9759ce
Renamed KtScope to MemberScope
2015-11-05 14:34:00 +03:00
Zalim Bashorov
c456ab0f74
Minor: refactoring ExpressionTypingUtils#checkVariableShadowing -- inline the search older descriptor
2015-11-04 22:15:39 +03:00
Stanislav Erokhin
a90ca14033
Removed KtScope.Empty and created util function emptyScope
2015-11-04 14:28:28 +03:00
Stanislav Erokhin
4e891a3f98
Minor. moved util method to Companion of LexicalScope
2015-11-04 14:28:27 +03:00
Stanislav Erokhin
2c7746cafd
Minor. Simplified code.
2015-11-04 14:28:27 +03:00
Stanislav Erokhin
b02da0dc2f
Created custom LexicalScope wrapper for resolving callable reference.
2015-11-04 14:28:26 +03:00
Stanislav Erokhin
f7629b0c84
Removed getAllDescriptors() and getOwnDeclaredDescriptors() from KtScope
2015-11-04 14:28:25 +03:00
Stanislav Erokhin
0b5de434fa
Removed usages KtScope.getAllDescriptors
2015-11-04 12:41:34 +03:00
Stanislav Erokhin
21fdd2ffc3
Created common supertype for LexicalScope & ImportingScope -- HierarchicalScope
2015-11-04 12:41:33 +03:00
Stanislav Erokhin
4c36e20242
Moved FilteringScope to frontend module
2015-11-04 12:41:32 +03:00
Stanislav Erokhin
6412df2e0b
Change return type of KtScope.getProperties()
2015-11-04 12:41:32 +03:00
Stanislav Erokhin
7cd667c0e3
Removed unused methods from KtScope.
2015-11-04 12:41:31 +03:00
Stanislav Erokhin
cc56cf6292
Removed several hacks from ScopeUtils.kt
2015-11-04 12:41:30 +03:00
Stanislav Erokhin
711daa459a
Minor. Removed util method LexicalScope.asKtScope()
2015-11-04 12:41:30 +03:00
Stanislav Erokhin
40146a0df8
Minor. Make WritableScopeStorage abstract class
2015-11-04 12:41:29 +03:00
Stanislav Erokhin
5c6134af81
Minor. Removed WritableScopeImpl.
2015-11-04 12:41:28 +03:00
Stanislav Erokhin
a5c9f4d353
Minor. removed usage WritableScopeImpl from tests
2015-11-04 12:41:27 +03:00
Stanislav Erokhin
c1fa973324
Minor. remove usage of WritableScope
2015-11-04 12:41:25 +03:00
Stanislav Erokhin
71620d2ed1
Minor. Move LockLevel to LexicalWritableScope
2015-11-04 12:41:24 +03:00
Stanislav Erokhin
fe61f41a94
Minor. remove unused import
2015-11-04 12:41:23 +03:00
Nikolay Krasko
e10f7fb464
Don't report missing getValue/setValue method error when it's was impossible to finish resolve
...
#KT-9803 Fixed
2015-11-04 02:31:15 +03:00
Anton Sukhonosenko
141ffa27dc
val / var are now forbidden on a loop multi declaration parameter #KT-6274 Fixed
...
VAL_OR_VAR_ON_LOOP_MULTI_PARAMETER error added
KtValVarKeywordOwner interface added for PSIs that have getValOrVarKeyword method
2015-11-03 15:30:50 +03:00
Mikhail Glukhikh
41ebfd025e
More precise diagnostics of smart cast impossible #KT-7240 Fixed
2015-11-03 13:38:51 +03:00
Mikhail Glukhikh
03aaddd379
More correct handling of possible type set during assignment #KT-8229 Fixed
2015-11-03 12:49:21 +03:00
Mikhail Glukhikh
0a5a5a2e36
More precise diagnostics is added for smart cast impossible #KT-8810 Fixed
2015-11-03 11:15:58 +03:00
Pavel V. Talanov
fff404780c
Add capabilities to moduleDescriptor as a way to put user data into module
...
Add OriginCapability to ide modules
2015-11-02 20:38:10 +03:00
Dmitry Jemerov
736b496f6a
drop deprecated @platformName and @platformStatic annotations
2015-11-02 17:00:44 +01:00
Pavel V. Talanov
bca516bac3
KtClassBody: get parent by stub is possible
2015-11-02 18:38:43 +03:00
Pavel V. Talanov
dc1fbe89ec
J2K ValueParameterDescriptor inteface in one go
2015-11-02 18:38:30 +03:00
Zalim Bashorov
16d585e204
Don't track lookups:
...
* when find local variables
we don't need them for incremental compilation;
* when check overrides
we going to track inheritance separatly;
* when get companion object descriptor;
* when find Descriptor by fqname
isn't interesting now because used from light-classes and and java-loder;
* when create qualifier
we already looked up names in this context before.
2015-11-02 18:18:35 +03:00
Zalim Bashorov
d78d96a856
Don't track lookups to EnumEntryScope and when check names in constraints
2015-11-02 18:18:34 +03:00
Zalim Bashorov
a5d8b47083
Refactoring: introduced val location: LocationInfo? in LookupLocation and use it in LookupTracker::record
2015-11-02 18:18:29 +03:00
Alexey Sedunov
520e90acf1
Minor: Use kotlin.lazy instead of kotlin.Delegates.lazy in KtPsiFactory.CallableBuilder
2015-11-02 15:15:44 +03:00
Alexey Sedunov
6dd58ad197
Inline: Fix inlining of if-expressions into qualified expressions
...
#KT-8008 Fixed
2015-11-02 15:15:29 +03:00
Alexey Sedunov
22393d4cd2
Formatter: Use formatter to automatically insert semicolons after the last enum entry when needed
2015-11-02 15:15:26 +03:00
Dmitry Petrov
e1cb13bd90
Qualifier no longer defers "(nested) class vs package" resolution.
...
Consider FQN 'a.b.c'.
If 'a' is a classifier in the current scope,
resolve rest in the corresponding class scope.
Otherwise (if 'a' is a package),
find the maximum possible prefix 'a.b' resolving to a package,
resolve rest in the corresponding package scope.
2015-11-02 10:22:50 +03:00
Stanislav Erokhin
77411b2181
Allowed call value with extension function type as simple function type.
2015-10-31 10:01:07 +03:00
Denis Zharkov
b6f724cf58
Disconnect loops between upper bounds of type parameters
...
#KT-9759 Fixed
2015-10-31 09:33:46 +03:00