Andrey Breslav
d466533ef2
Missing test added
2015-03-06 21:59:03 +03:00
Alexey Tsvetkov
ded46843c2
JS: generate metadata for public inline functions
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
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
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
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
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
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
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
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
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
Natalia Ukhorskaya
0391fbd764
Evaluate Expression: support anonymous objects evaluation
2015-03-04 12:42:59 +03:00
Pavel V. Talanov
48fbce9582
Refactor: process mentions of class object
...
Rename usages that refer to "default object" concept now
Test data file names are left as is
2015-03-03 20:57:08 +03:00
Pavel V. Talanov
ac34f2188b
Prettify code in DeclarationResolver.kt
2015-03-03 14:54:42 +03:00
Pavel V. Talanov
9628d98f38
Convert to kotlin: DeclarationResolver.kt
2015-03-03 14:54:36 +03:00
Pavel V. Talanov
4a156c5c8c
Rename file: DeclarationResolver.java -> DeclarationResolver.kt
2015-03-03 14:54:25 +03:00
Pavel V. Talanov
cc90891b6c
Minor: change rendering of class objects in some diagnostics
2015-03-03 13:04:31 +03:00
Pavel V. Talanov
989f07962b
Write to trace in case class qualifier is a short reference to default object
...
This allows to fix some cases when there is a difference between explicit and short reference to default object
Fix shorten reference, optimize imports and import insert helper for default objects
ShortenReferences always transforms default object references to shorter form for now
Fix DescriptorUtils#getFqName() for default objects (affects test data mostly)
Fix DescriptorUtils#getImportableDescriptor()
2015-03-03 13:04:30 +03:00
Pavel V. Talanov
ffabe19229
Prohibit accessing nested classes/objects of class object using class literal
...
The fqname of class should be clear from code
Example: can't shorten A.Default.B.Default.C to A.B.C
Also fixes problem when nested class of enum class could be accessed via enum entry
2015-03-03 13:04:29 +03:00
Pavel V. Talanov
86bbb117ef
Refactor: rework FilteredCollector in CallableDescriptorCollectors
...
Convert LibrarySourceHacks to Kotlin
2015-03-03 13:04:28 +03:00
Pavel V. Talanov
cceb5738c8
Can't omit default object name in imports and types
...
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
2015-03-03 13:04:28 +03:00
Pavel V. Talanov
640d2de5b9
Fix incorrect reference target for class literals in some cases
2015-03-03 13:04:27 +03:00
Pavel V. Talanov
88c5379424
Change importing rules for objects:
...
Allow importing classes from object, prohibit import-on-demand from objects
It's unclear what import-on-demand from object should mean so we prohibit it for now
2015-03-03 13:04:27 +03:00
Andrey Breslav
4c84b19b33
KT-5488 Invalid ambiguity between plus and plusAssign
...
#KT-5488 Fixed
2015-02-27 19:32:58 +03:00
Stanislav Erokhin
602689892e
Wrong diagnostic when last expression in lambda contains assignment operation
...
#KT-6769 Fixed
2015-02-27 14:16:20 +03:00
Nikolay Krasko
f2b1585399
Add file name to debug context string to see if file is script
2015-02-26 16:39:50 +03:00
Yan Zhulanow
9aef9b2643
Rename jet to kotlin in plugin-api
2015-02-26 15:25:58 +03:00
Yan Zhulanow
c756cfef86
Codebase update
2015-02-26 15:25:57 +03:00
Yan Zhulanow
4f9aba2cdc
Support multi-module configuration in Android plugin
2015-02-26 15:25:57 +03:00