Commit Graph

12952 Commits

Author SHA1 Message Date
svtk e29dab5044 refactoring: record copy of resolved call explicitly 2013-11-22 13:08:10 +04:00
Andrey Breslav 4ac7afbb9f Module annotations-ext removed. Annotations are moved to runtime 2013-11-21 20:47:48 +04:00
Alexander Udalov c7d5819ef2 Pull up getThisAsReceiverParameter() 2013-11-21 19:34:51 +04:00
Alexander Udalov a77d6a006d Cleanup ClassDescriptorImpl & ErrorClassDescriptor
ClassDescriptorImpl now extends ClassDescriptorBase and reuses most of its
functionality. ErrorClassDescriptor now is initialized in its own constructor.
Inline trivial arguments everywhere
2013-11-21 19:34:51 +04:00
Alexander Udalov 62068bf741 Pull up getUnsubstitutedInnerClassesScope() 2013-11-21 19:34:50 +04:00
Alexander Udalov e9f102f3e6 Pull up getClassObjectType() 2013-11-21 19:34:50 +04:00
Alexander Udalov 97f2d568a3 Use StorageManager in AbstractClassDescriptor to create a lazy value 2013-11-21 19:34:50 +04:00
Alexander Udalov ff29684e3d Delete ExpressionPosition
It had been deprecated in 838c408
2013-11-21 19:34:50 +04:00
Alexander Udalov 223bf11de6 Minor, NamedMembers.toString() 2013-11-21 19:34:50 +04:00
Alexander Udalov 2c6bf6171f Rename ClassKind.isObject -> isSingleton
"isObject" gives a false impression that this is a check if the kind is OBJECT
2013-11-21 19:34:50 +04:00
Evgeny Gerashchenko 9a8d639ac5 Fixed compilation.
Ffter accidental using of method from too fresh IDEA.
2013-11-21 19:15:49 +04:00
Alexey Sedunov 2ecac63405 Fix compilation error caused by the change in IDEA API 2013-11-21 18:57:13 +04:00
Evgeny Gerashchenko f2bbbed7f6 Returning correct exit code from Windows batch scripts. 2013-11-21 17:37:38 +04:00
Evgeny Gerashchenko 51ac515941 Fixed kotlinc-* executables. 2013-11-21 17:37:37 +04:00
Evgeny Gerashchenko 581b9646d7 Added test for kotlinc executables. 2013-11-21 17:37:37 +04:00
Evgeny Gerashchenko ca785cbdd5 Minor. Moved classes. 2013-11-21 17:37:37 +04:00
Evgeny Gerashchenko d937909ebf Separated test data depending on target platform (JS/JVM) 2013-11-21 17:37:36 +04:00
Evgeny Gerashchenko f06e46951f Separated ScriptTest from other cli tests. 2013-11-21 17:37:36 +04:00
Evgeny Gerashchenko 46879e5a26 Moved args into test data of cli tests. 2013-11-21 17:37:35 +04:00
Alexey Sedunov 139f98a983 Update to IDEA 133.79 EAP 2013-11-21 17:08:54 +04:00
Andrey Breslav 054ecdaa6c More info in the assert message 2013-11-21 13:07:39 +04:00
Andrey Breslav 345ecbf4c0 Never import object descriptors, for they may overwrite corresponding vals 2013-11-21 13:07:39 +04:00
Andrey Breslav 0fa70b7e47 Move utility method to DescriptorUtils and make it more general 2013-11-21 13:07:38 +04:00
Andrey Breslav dbd12b0c60 More information in debug message: file name 2013-11-21 13:07:38 +04:00
Andrey Breslav d9444fea09 printScopeStructure() introduced for debugging 2013-11-21 13:07:38 +04:00
Andrey Breslav af68739e69 More information in assert message 2013-11-21 13:07:38 +04:00
Andrey Breslav a0b09ae590 Optimization: don't check when there's nothing to check or report 2013-11-21 13:07:37 +04:00
Andrey Breslav ce496c4512 More info in assert 2013-11-21 13:07:37 +04:00
Andrey Breslav 301bcebaf1 Unnecessarily specific cast weakened 2013-11-21 13:07:37 +04:00
Andrey Breslav d2a9cd7b43 Render types with renderer 2013-11-21 13:07:37 +04:00
Andrey Breslav 083644ea43 Support parameter annotations. Fix class path and test data 2013-11-21 13:07:36 +04:00
Andrey Breslav c034d5e675 Report target file on injector generation failure 2013-11-21 13:07:36 +04:00
Andrey Breslav ef2ae0f398 Consider packages equal if their fqNames are equal 2013-11-21 13:07:36 +04:00
Andrey Breslav 9e446373e3 Old JDR and test data fixed 2013-11-21 13:07:35 +04:00
Andrey Breslav 80c281bcd3 Unnecessary downcast removed 2013-11-21 13:07:35 +04:00
Andrey Breslav 11c8d0785b Extra information in assertion message 2013-11-21 13:07:35 +04:00
Andrey Breslav 814311075d Assertion message 2013-11-21 13:07:35 +04:00
Andrey Breslav ba8bcb2e9a Better diagnostics + basic recursion detection in memoized functions 2013-11-21 13:07:34 +04:00
Andrey Breslav 4aadf6e802 Storage manager framework uses Kotlin iterfaces 2013-11-21 13:07:34 +04:00
Andrey Breslav 0c2e1fb806 @NotNull annotations on descriptor classes 2013-11-21 13:07:34 +04:00
Andrey Breslav 6dde064791 Collections in interfaces marked @ReadOnly 2013-11-21 13:07:34 +04:00
Andrey Breslav e5c67e7935 Classes @Nullable and @NotNull are added to runtime
This is needed because Kotlin now annotates all emitted byte code with @Nullable and @NotNull, and a verifier like proguard would reject the code unless the classes are on the class path
2013-11-21 13:07:33 +04:00
Andrey Breslav a7b50d7d06 Remove rependency on annotations-ext.jar 2013-11-21 13:07:33 +04:00
Andrey Breslav 70ae245181 Annotation classes @ReadOnly and @Mutable added to runtime (to get into the standard library) 2013-11-21 13:06:45 +04:00
Andrey Breslav bfbb200ba8 Only render exact function types in special syntax 2013-11-21 13:05:39 +04:00
Alexey Sedunov 9f5ee13c20 Implement "Merge when" intention 2013-11-20 20:55:58 +04:00
Evgeny Gerashchenko d9b1c88bf4 Minor. Fixed misused class. 2013-11-20 19:33:27 +04:00
Evgeny Gerashchenko 32a2f98c74 Minor. Reused util method. 2013-11-20 19:33:27 +04:00
Mikhael Bogdanov 1e4397a83d Added isExactFunctionOrExtensionFunctionType method 2013-11-20 16:32:08 +04:00
Mikhael Bogdanov 3caa410e06 OverloadResolutionResultsImpl param substituted with ResolvedCall in callResolverExtension 2013-11-20 16:32:08 +04:00