Commit Graph

7199 Commits

Author SHA1 Message Date
Alex Tkachman ca615aac3d KT-2350 fix: enums with overrides and constructor parameters 2012-08-15 20:25:35 +03:00
Nikolay Krasko 1fe28802aa Increase minimum version for required IDEA to next EAP as trunk is not compatible with 120.305 anymore 2012-08-15 18:26:02 +04:00
Andrey Breslav ee5f598836 Wrong test data fixed (previously commited by mistake) 2012-08-15 18:11:47 +04:00
Alex Tkachman ca33712b00 making code greener and properly formatted 2012-08-15 17:08:43 +03:00
Alex Tkachman 813c7d0871 test for obsolete KT-1119 & proper final flag for enum class with entries overriding methods/properties 2012-08-15 16:06:06 +03:00
Alex Tkachman 31db3456ca enum entries which overrides methods 2012-08-15 15:56:34 +03:00
Andrey Breslav 00305ba920 Fixing interdependency between delegation and fake overrides
Main changes sit in OverrideResolver::generateOverridesAndDelegationInAClass()

Now fake overrides AND delegation are generated for supertypes before any processing is done for subclasses.
2012-08-15 16:15:04 +04:00
Andrey Breslav 734a9a02ef Extract method for clarification 2012-08-15 13:39:20 +04:00
Andrey Breslav e7e7188da1 LR: values() and valueOf() created properly for enums' class objects 2012-08-15 13:34:51 +04:00
Andrey Breslav 24b83dd8f7 Getting rid of unneeded parameters
+ constants introduced
2012-08-15 13:34:18 +04:00
Andrey Breslav 5ee995b8cb Type fixed 2012-08-15 13:02:12 +04:00
Andrey Breslav 2904866356 Useless final removed 2012-08-15 12:59:53 +04:00
Andrey Breslav 22f8ca4bee resolveSupertypes() refactored
* ClassDescriptor passed explicitly, psi-based checks and trace reading eliminated
* some clarifying renames/extractions made
2012-08-15 12:59:53 +04:00
Andrey Breslav fb72a4d1f2 Formatting 2012-08-15 12:59:53 +04:00
Alex Tkachman 87a8e0a5dc enum classes are never inner 2012-08-15 10:44:33 +03:00
Nikolay Krasko f817b04f84 Now IdeaWin*.dll libraries can be correctly loaded from bin directory so there's no need to copy them 2012-08-15 11:33:30 +04:00
Nikolay Krasko 8472e77ccb Remove hack with supressing "Virtual pointer hasn't been disposed" exception after detaching library. 2012-08-15 11:33:30 +04:00
Nikolay Krasko c38453f4ab Fix formatting 2012-08-15 11:33:29 +04:00
Alexander Udalov 90c7683f3c classNamesForPosition always returns one class name 2012-08-14 22:30:27 +04:00
Alexander Udalov 0adf6d615a JetPositionManager now correctly calculates class names for a given position 2012-08-14 22:30:27 +04:00
Evgeny Gerashchenko 199029360a KT-2326 Link external annotations via mechanism in IDEA core when Kotlin depends on IDEA 12.x
Dropped temporary classes.

 #KT-2326 fixed
2012-08-14 21:51:08 +04:00
Nikolay Krasko b186064130 Use resolve session for checking comparability of descriptors 2012-08-14 20:28:23 +04:00
Nikolay Krasko 84a6c63d07 Remove some unused methods from QualifiedNamesUtil 2012-08-14 19:31:21 +04:00
Nikolay Krasko 8f5811fce2 Propagate lazy resolve session to getJetClassesDescriptors() 2012-08-14 19:30:23 +04:00
Nikolay Krasko b722e85c2b Propagate lazy resolve session to getJetCallableExtensions() 2012-08-14 16:19:41 +04:00
Nikolay Krasko b5b72f93dc getTopLevelFunctionDescriptorsByName should give descriptors from the predefined resolve session 2012-08-14 15:38:52 +04:00
Nikolay Krasko a47257c9c5 Give receiver for chained scope in constructor 2012-08-14 14:15:15 +04:00
Nikolay Krasko 5440738ce4 Remove context reassignment in BodyResolver 2012-08-14 14:15:14 +04:00
Nikolay Krasko d1dc67c049 Search for function in resolve session with non-physical file 2012-08-14 14:15:13 +04:00
Nikolay Krasko 365bb3ad8a Use lazy resolve in completion 2012-08-14 14:15:12 +04:00
Nikolay Krasko 4c39a49bd1 Go through the chain to find implicit receiver 2012-08-14 14:15:11 +04:00
Nikolay Krasko cf6787b798 Inject context for body resolve 2012-08-14 14:15:10 +04:00
Nikolay Krasko d33b826055 Use internal namespace qualified name 2012-08-14 14:15:09 +04:00
Nikolay Krasko 9e5e6941da Control supported version manually 2012-08-14 13:19:09 +04:00
Nikolay Krasko b5357d8738 Compile against 122.29 idea eap 2012-08-14 13:19:08 +04:00
Natalia.Ukhorskaya 98ed261eb3 Fix android build 2012-08-14 12:25:06 +04:00
Alex Tkachman 71208de565 revert unsuccessful attempt to fix android build 2012-08-14 09:26:27 +03:00
Alex Tkachman 6f4e84287e fix broken compilation 2012-08-14 09:11:27 +03:00
Alex Tkachman 016f528334 some codegen tests use main instead of box 2012-08-14 07:09:13 +03:00
Alex Tkachman 5947759684 proper compilation of enums 2012-08-13 22:37:27 +03:00
Alexander Udalov e5820722ec fix failing CompileKotlinAgainstKotlinTest 2012-08-13 17:08:21 +04:00
Andrey Breslav 39f96b80fd Clarifying renames 2012-08-13 13:29:44 +04:00
Andrey Breslav b76bdd09ff Formatting + redundant modifiers removed 2012-08-13 11:57:10 +04:00
Andrey Breslav 3b3f1aa016 All the special types are now handled by SpecialTypes class
- this concept used to be called "known types" before
2012-08-13 11:56:26 +04:00
Andrey Breslav f7321a40e0 Format method with multiline parameter list like this:
int foo(
        Bar buzz
) {
    // ...
}
2012-08-10 20:08:16 +04:00
Alexander Udalov dcf2982288 copy-paste bug fix in test 2012-08-10 17:24:44 +04:00
Alexander Udalov 9350369fab Fixed codegen for single-branch if
#KT-2597 Fixed
 #KT-2598 Fixed
2012-08-10 14:39:34 +04:00
Alexander Udalov 4bc1b2636a StackValue.pop() 2012-08-10 14:39:33 +04:00
Alex Tkachman b497fcc167 removing hack where ClosureAnnotator deals with range class objects 2012-08-10 09:40:59 +03:00
Evgeny Gerashchenko c8fc299f43 Extracted parts of StandardLibraryReferenceResolver.findCurrentDescriptor() into methods. 2012-08-09 19:14:31 +04:00