Commit Graph

8495 Commits

Author SHA1 Message Date
Alexander Udalov 89b8bbec57 Do not add extra 'this' parameter for TImpl's accessor
Fixes weird cases like super-call from a closure inside a trait with a required
class
2012-11-07 17:06:18 +04:00
Alexander Udalov 2edb89b5c5 Refactor mysterious code in ExpressionCodegen
'super' receiver is now generated in visitSuperExpression()
2012-11-07 17:06:17 +04:00
Alexander Udalov 73282c41dc Remove useless StackValue.valueOf() 2012-11-07 17:06:16 +04:00
Alexander Udalov a9aef66b15 Remove useless StackValue.upcast() 2012-11-07 17:06:16 +04:00
Alexander Udalov e89ccf5f1b A couple toString() methods in backend 2012-11-07 17:06:15 +04:00
Alexander Udalov cd35a6626e KT-2963 VerifyError using traits with required classes
#KT-2963 Fixed
2012-11-07 17:06:14 +04:00
Natalia.Ukhorskaya f139b637f3 Automatically cast error for intrinsic methods in array
#KT-2997 Fixed
2012-11-07 16:28:46 +04:00
Pavel V. Talanov e9bf09d240 Rename class: Origin -> DeclarationOrigin 2012-11-07 16:12:57 +04:00
Pavel V. Talanov a657a19253 Fix TypeConstructor#getSupertypes() return type 2012-11-07 16:12:56 +04:00
Pavel V. Talanov daf9c6f2c1 Add TODO 2012-11-07 16:12:56 +04:00
Pavel V. Talanov d1057348da Refactor JavaNamespaceResolver#createNamespaceData 2012-11-07 16:12:55 +04:00
Pavel V. Talanov 9fbecf515e Move NamedMembers and MembersCache to provider package 2012-11-07 16:12:54 +04:00
Pavel V. Talanov 940aba04ff Rename package: data -> provider 2012-11-07 16:12:53 +04:00
Pavel V. Talanov b3e9a78f45 Rename: NamespaceScopeData -> PackagePsiDeclarationImpl 2012-11-07 16:12:52 +04:00
Pavel V. Talanov f0b99848ec Refactor: remove ResolverClassData class 2012-11-07 16:12:51 +04:00
Pavel V. Talanov 51c369db5e Refactor: group methods for creating *PsiDeclarationProvider 2012-11-07 16:12:50 +04:00
Pavel V. Talanov 791120a2be Refactor: remove ResolverScopeData class, hack JavaBaseScope to use ClassPsiDeclarationProvider and PackagePsiDeclarationProvider interfaces
Compilation errors fixed
2012-11-07 16:12:50 +04:00
Pavel V. Talanov 5405b03f21 Refactor: restructure Resolver*Data class hierarchy
Compilation errors still present
2012-11-07 16:12:49 +04:00
Pavel V. Talanov 89c5bef6eb Refactor: introduce and use PackagePsiDeclarationProvider instead of ResolverNamespaceData 2012-11-07 16:12:48 +04:00
Pavel V. Talanov adc0e1fce1 Refactor: use ClassPsiDeclarationProvider instead of ResolverClassData 2012-11-07 16:12:47 +04:00
Pavel V. Talanov 811a65826b Refactor: introduce ClassPsiDeclarationProvider and PsiDeclarationProvider interfaces, use them in JavaFunctionResolver and JavaPropertyResolver 2012-11-07 16:12:46 +04:00
Pavel V. Talanov 1c70daa499 Refactor: use getOrigin instead of isKotlin() 2012-11-07 16:12:45 +04:00
Pavel V. Talanov 414f5ea2cb Refactor: clean up ResolverScopeData and introduce Origin enum 2012-11-07 16:12:45 +04:00
Pavel V. Talanov ea7f0ff6e5 Minor refactoring 2012-11-07 16:12:44 +04:00
Pavel V. Talanov 5a7c1551d2 Refactor: fix ResolverClassData constructor 2012-11-07 16:12:43 +04:00
Pavel V. Talanov 02c28943a0 Minor refactor 2012-11-07 16:12:42 +04:00
Pavel V. Talanov 35f28e7684 Refactor: remove ResolverScopeData#getFqName() 2012-11-07 16:12:41 +04:00
Pavel V. Talanov db5c04b360 Refactor: inject ResolverClassData in constructor of ClassDescriptorFromJvmBytecode 2012-11-07 16:12:40 +04:00
Pavel V. Talanov 44031be74c Refactor: eliminate remaining usages of ResolverScopeData#getClassOrNamespaceDescriptor() 2012-11-07 16:12:40 +04:00
Pavel V. Talanov f5cd36a9d2 Refactor: eliminate most of ResolverScopeData#getClassOrNamespaceDescriptor() usages 2012-11-07 16:12:39 +04:00
Pavel V. Talanov b18ffa52fa Refactor eliminate remaining usages of ResolverClassData#getClassDescriptor() 2012-11-07 16:12:38 +04:00
Pavel V. Talanov b2af761207 Refactor: Eliminate some usages of ResolverClassData#getClassDescriptor() 2012-11-07 16:12:37 +04:00
Pavel V. Talanov bf97738991 Eliminate usages of ResolverClassData#getClassDescriptor() in DescriptorResolverUtils#getSupertypes() 2012-11-07 16:12:36 +04:00
Pavel V. Talanov 956a34b578 Refactor ClassDescriptorFromJvmBytecode: remove ClassDescriptorFromJvmBytecode#getResolverBinaryClassData 2012-11-07 16:12:35 +04:00
Pavel V. Talanov c808aa398c Refactor Resolver*Data 2012-11-07 16:12:35 +04:00
Pavel V. Talanov 1eea128b29 Restructure JavaClassResolver caches to contain ClassDescriptor instead of ResolverClassData 2012-11-07 16:12:34 +04:00
Pavel V. Talanov aa5793d6d0 Refactor JavaNamespaceResolver and ResolverNamespaceData
Remove reference to JavaBaseScope from ResolverNamespaceData
2012-11-07 16:12:33 +04:00
Pavel V. Talanov 86e93e3c22 Restructure caches in JavaNamespaceResolver 2012-11-07 16:12:32 +04:00
Pavel V. Talanov 2eb017fa1e Remove redundant parameter from JavaDescriptorResolver#getJavaPackageScope
Minor warnings fixed in affected files
2012-11-07 16:12:31 +04:00
Pavel V. Talanov 7d6df99bfc Minor refactoring 2012-11-07 16:12:30 +04:00
Andrey Breslav d8ef7210dc KT-3025 Bad handling of missing expression in catch()
#KT-3025 Fixed
2012-11-07 16:01:30 +04:00
Nikolay Krasko 4ca7d086c2 Refactor completion
- introduce JetCompletionResultSet to abstract adding descriptors
- remove multiple static methods from JetCompletionContributor
2012-11-06 18:54:52 +04:00
Nikolay Krasko 68a55f1c5e Rename JetClassCompletionContributor -> JetTypesCompletionHelper 2012-11-06 18:54:48 +04:00
Nikolay Krasko d2c4734187 Remove outdated class completion contributor 2012-11-06 18:54:44 +04:00
Nikolay Krasko e53cd39941 NotNull annotation is added 2012-11-06 18:54:39 +04:00
Nikolay Krasko 9d65cb482d KT-2866 Names from multi-declarations do not show up in completion
Test added
 #KT-2866 Fixed
2012-11-06 18:54:35 +04:00
Nikolay Krasko 811b115859 Merge branch 'KT-1817' of https://github.com/crazyproger/kotlin 2012-11-06 18:54:31 +04:00
Vladimir Rudev 17b05de3f4 Icon for kotlin declarations detected by descriptor 2012-11-06 18:31:34 +04:00
Vladimir Rudev 3cc92ad24c Move method to JetPsiUtil 2012-11-06 18:31:33 +04:00
Vladimir Rudev d9d4683989 JetDescriptorIconProvider now return abstract icons for abstract functions 2012-11-06 18:31:32 +04:00