Commit Graph

10416 Commits

Author SHA1 Message Date
Alexey Tsvetkov b280e891e9 JS: read compiled js modules 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov ded46843c2 JS: generate metadata for public inline functions 2015-03-06 21:36:18 +03:00
Alexey Tsvetkov 7a96ca1dfb JS: LibraryUtils refactoring 2015-03-06 21:36:18 +03:00
Dmitry Jemerov 4181006e87 temporarily mute test to avoid bootstrapping issues (to be reenabled after a successful build in master) 2015-03-06 18:02:14 +01:00
Dmitry Jemerov 46dbf005df update testdata for the newly appeared Double.mod(Char) method 2015-03-06 18:02:13 +01:00
Pavel V. Talanov 5540f09751 Report default object specific diagnostics on 'default' modifier 2015-03-06 19:37:02 +03:00
Pavel V. Talanov 012d25dbca Add test for soon to be deprecated 'class object' syntax 2015-03-06 19:37:00 +03:00
Pavel V. Talanov b51368a5e5 Fix cls builder for new decompiler 2015-03-06 19:36:58 +03:00
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Dmitry Jemerov 28ed30bcb3 change KDoc parsing so that space after parameter/section name is not included in tag content; support @property tag in KDocFinder 2015-03-06 16:13:11 +01:00
Evgeny Gerashchenko e267f0d4ef Safer check for optimized for loops. 2015-03-06 15:09:28 +03:00
Alexey Sedunov 2684ce20d4 Parser: Do not produce qualified expressions without receiver in package directives. Add assertion on JetQualifiedExpression
#KT-6907 Fixed
2015-03-06 14:37:22 +03:00
Evgeny Gerashchenko 14b16ff87c KT-6916 Slow bytecode for downTo iteration like for (i in max downTo min)
#KT-6916 fixed
2015-03-06 13:43:02 +03:00
Pavel V. Talanov 913724f0e9 Allow default object to be denoted with 'default' modifier
Report 'default' modifier in illegal positions
2015-03-06 12:41:50 +03:00
Pavel V. Talanov b73d7e19b7 Remove various getDefaultObject() methods 2015-03-06 12:41:46 +03:00
Pavel V. Talanov 101cc9c9ea Minor: rename ModifiersChecker#checkIllegalModifiers -> reportIllegalModifiers 2015-03-06 12:41:42 +03:00
Pavel V. Talanov 2b51e4f2d4 Add 'default' keyword
Parser: allow objects that are marked as default to have no name
2015-03-06 12:41:38 +03:00
Pavel V. Talanov 0ca2f3f336 Minor: prevent rare case when soft keyword was parsed as enum entry 2015-03-06 12:41:34 +03:00
Dmitry Jemerov c029fa2ed0 add test for generating annotations on the setter of a delegated property; (KT-4169); properly generate backing field for delegated property with a setter 2015-03-05 19:04:18 +03:00
Dmitry Jemerov b4eb3e0f43 add test for visibility of setter for delegated property (KT-5957) 2015-03-05 19:04:18 +03:00
Dmitry Jemerov e9266481c5 allow delegated properties to have getters and setters without bodies 2015-03-05 19:04:17 +03:00
Evgeny Gerashchenko 8ba15937f9 KT-6820 Find usages doesn't find delegated properties when searching get/set/propertyDelegated functions
#KT-6820 fixed
2015-03-05 18:42:18 +03:00
Evgeny Gerashchenko af7eba64f7 Disallow PropertyMetadataImpl in conventions for delegated properties 2015-03-05 18:42:17 +03:00
Evgeny Gerashchenko 056daeaadb Don't mark parameters of get/set/propertyDelegated functions as unused.
#KT-5974 fixed
2015-03-05 18:42:16 +03:00
Evgeny Gerashchenko 0bc8efa20d Reverted old behaviour of DescriptorToSourceUtils.descriptorToDeclaration() 2015-03-05 15:19:35 +03:00
Evgeny Gerashchenko e7796fbb58 Not trying to find declaration in both builtins and decompiled code (as it worked before). 2015-03-05 15:19:34 +03:00
Evgeny Gerashchenko 2b522f2d5e Added comments. 2015-03-05 15:19:34 +03:00
Evgeny Gerashchenko 46940d272e Convert DescriptorToSourceUtils to Kotlin. Code cleanup. 2015-03-05 15:19:32 +03:00
Evgeny Gerashchenko 44d86da1cd Convert DescriptorToSourceUtils to Kotlin. Auto-convert. 2015-03-05 15:19:32 +03:00
Evgeny Gerashchenko 648336e759 Convert DescriptorToSourceUtils to Kotlin. Rename. 2015-03-05 15:19:31 +03:00
Evgeny Gerashchenko 8ab94a18ae Inlined trivial method classDescriptorToDeclaration 2015-03-05 15:19:30 +03:00
Evgeny Gerashchenko 7b6f83815c Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages. 2015-03-05 15:19:29 +03:00
Dmitry Jemerov 48b0afd84d correctly generate safe casts from Unit type
#KT-4494 fixed
2015-03-05 11:59:23 +01:00
Dmitry Jemerov 2835459920 correctly generate 'in' expressions with IntRange on RHS and a type other than Int on LHS 2015-03-05 11:33:24 +01:00
Dmitry Jemerov 1188be9070 generate correct bytecode for constructors using infix call syntax
#KT-4589 Fixed
2015-03-05 11:26:27 +01:00
Pavel V. Talanov ed4c265564 Drop ClassKind.CLASS_OBJECT
Default and non-default objects now have ClassKind.OBJECT
2015-03-05 13:06:33 +03:00
Pavel V. Talanov f72f548a93 Add ClassDescriptor#isDefaultObject()
with dummy implementations for now
2015-03-05 13:06:12 +03:00
Pavel V. Talanov afe8773e41 Minor: rename OVERRIDE_CANNOT_BE_STATIC and improve message 2015-03-05 13:06:00 +03:00
Pavel V. Talanov 350864b22f Drop some of explicit ClassKind.CLASS_OBJECT and OBJECT usages 2015-03-05 13:05:56 +03:00
Pavel V. Talanov fa590a5b83 Refactor: Extract isObject with a new semantic 2015-03-05 13:05:48 +03:00
Pavel V. Talanov fc6f4208ec Rename: isObject -> isNonDefaultObject 2015-03-05 13:05:45 +03:00
Nikolay Krasko 518c35fae1 Intrinsic default objects implementation: old test data modification 2015-03-05 01:30:39 +03:00
Nikolay Krasko 30a50746b5 Intrinsic default objects implementation: tests 2015-03-05 01:30:38 +03:00
Nikolay Krasko 1f79e0905f Intrinsic default objects implementation 2015-03-05 01:30:37 +03:00
Nikolay Krasko 05de376fc3 Don't spam warning when file was removed 2015-03-05 01:30:37 +03:00
Nikolay Krasko c75a7df926 Put reference to default object in default object extenstion call 2015-03-05 01:30:35 +03:00
Alexey Sedunov 5382504306 Extraction Engine: Support lazy properties and properties with initializer 2015-03-04 23:06:03 +03:00
Dmitry Jemerov e60aafb18a regression test for KT-3421 2015-03-04 17:43:38 +01:00
Dmitry Jemerov 46e0fdc067 regression test for KT-3442 2015-03-04 17:41:27 +01:00
Dmitry Jemerov 7522eb4032 regression test for KT-3903 2015-03-04 17:32:40 +01:00