Alexander Udalov
2d6cbc2ece
Include bootstrap runtime in the intermediate kotlin-compiler.jar
...
This allows Kotlin compiler to be compatible only with the version of runtime
it was built against. This is currently done only on the first cycle of our
bootstrap process (the final released compiler is still supposed to work
against a separately shipped runtime)
2014-02-19 17:46:19 +04:00
Alexander Udalov
b597940048
Minor, rename method
2014-02-19 17:46:18 +04:00
Alexander Udalov
339a990482
Remove ClassLoaderIsolationUtil
...
Minimize usages of jet.* in Java code: this will help in migration of jet.* to
package kotlin. Since tests will work with fq names instead of Class<?>
instances from now on, ClassLoaderIsolationUtil is useless now (except for one
unrelated method, which was moved to CodegenTestUtil)
2014-02-19 17:46:18 +04:00
Alexander Udalov
eb7b757e38
Fix VerifyError on rangeTo on primitive types
2014-02-19 17:46:18 +04:00
Alexander Udalov
8c97d9ebb3
Fix rangeTo between Float and Long
...
Float.rangeTo(Long) and Long.rangeTo(Float) now both return FloatRange for
consistency with other binary operations between floats and longs which, in
turn, return float to be consistent with Java
2014-02-19 17:46:18 +04:00
Alexander Udalov
7b642c9e37
Minor, move method closer to its usage
2014-02-19 17:46:18 +04:00
Alexander Udalov
977b156a0d
Create fake overrides for deserialized enum class object
...
Now that Any has members, we need to make sure fake overrides are properly
generated in every class descriptor we create automatically or manually.
This fixes DescriptorSerializationTestGenerated
2014-02-19 17:46:17 +04:00
Alexander Udalov
304129f9c9
Check if the class is special by FQ name
...
This is needed because our built-ins can be loaded with two different
mechanisms (deserialization and lazy resolve) and, when that happens,
corresponding descriptors aren't equal to each other, so one of two resolved
descriptors for Any (or the same with Nothing) was never considered to be a
"special class" with no supertypes
2014-02-19 17:44:19 +04:00
Alexander Udalov
3e33473c1a
Don't check equals, hashCode, toString in LoadBuiltinsTest
...
Otherwise there'll be too many fake overrides when these methods will appear in
Any
2014-02-19 17:44:19 +04:00
Alexander Udalov
4605a8f1f9
Copy jet.modules.* to kotlin.modules.*
...
The next step will be to use the new "kotlin.modules" package and drop the old
"jet" one
2014-02-19 17:44:19 +04:00
Andrey Breslav
5c571812a6
Minor. Formatting fixed
2014-02-19 14:30:48 +04:00
Andrey Breslav
b0ec4f10e9
Migrate from MutableClassDescriptor to ClassDescriptorWithResolutionScopes
...
Cast to MutableClassDescriptor where needed. The code with casts will be removed shortly
2014-02-19 14:30:48 +04:00
Andrey Breslav
5856ce3c2c
Minor: idea config file changed
2014-02-18 19:51:49 +04:00
Andrey Breslav
5478204e2d
PlatformToKotlinClassMap can be obtained from the module
2014-02-18 19:51:49 +04:00
Andrey Breslav
cbc132efba
Mutability of collections made explicit in BodiesResolveContext
2014-02-18 19:51:49 +04:00
Andrey Breslav
d9dceca0c3
getDeclaredCallableMembers() added to ClassDescriptorWithResolutionScopes
2014-02-18 19:51:49 +04:00
Andrey Breslav
ac94dc5411
Interface ClassDescriptorWithResolutionScopes extracted for both lazy and mutable classes
2014-02-18 19:51:49 +04:00
Nikolay Krasko
9a8a8364dd
KT-4344 "Overridden method parameters are not annotated" warnings from Java
...
#KT-4344 Fixed
2014-02-18 14:49:34 +04:00
Nikolay Krasko
f14f2c19a8
Fix goto class action in Idea 13.1
2014-02-18 14:39:19 +04:00
Nikolay Krasko
bd859efb39
Generator for goto symbols test
2014-02-17 22:12:09 +04:00
Andrey Breslav
85e5b4e205
JDK layout fixed for Mac
2014-02-17 17:08:17 +04:00
Andrey Breslav
b67c125f6d
More memory for the Ant build
2014-02-17 17:08:17 +04:00
max-kammerer
1c7bb85193
Merge pull request #372 from pk382/replace-dot-qualified-call-intention
...
New Intention Action: Replace a dot-qualified function call with an infix function call.
2014-02-17 13:20:02 +03:00
Nikolay Krasko
86767c2349
Remove write action for paste for better idea actual behaviour emulation
2014-02-17 10:45:48 +04:00
Natalia Ukhorskaya
9f3b73986a
Update to IDEA 13.1 (134.1007)
2014-02-17 10:45:48 +04:00
Pavel V. Talanov
4c57aa9f23
Generate Injectors: minor, remove redundant GenerateInjectors class
2014-02-14 16:47:23 +04:00
Pavel V. Talanov
f8a8bbe9b0
Generate Injectors: add ability to specify that a field is a context
...
Context field's properties can injected into other components
Use it in GenerateInjectors.kt
2014-02-14 16:47:22 +04:00
Pavel V. Talanov
6c77ea91c5
Generate Injectors: simplify and remove redundancy
2014-02-14 16:47:21 +04:00
Pavel V. Talanov
00cbd11b84
Share "Generate Injectors" run configurations
2014-02-14 16:47:20 +04:00
Pavel V. Talanov
1ab4c2763f
Generate Injectors: rewrite facade to Kotlin
2014-02-14 16:47:19 +04:00
Pavel V. Talanov
73dd8a051a
Remove useless InjectorForJvmCodegen
2014-02-14 16:47:18 +04:00
Pavel V. Talanov
b37c57cf2b
Minor: remove redundant implementations of ResolutionContext#self
2014-02-14 16:47:17 +04:00
Pradyoth Kukkapalli
44234c7c0a
New Intention Action: Replace a dot-qualified function call with an infix function call.
2014-02-14 00:18:09 -05:00
Evgeny Gerashchenko
5a1f98041e
Simplified kotlinc tests.
2014-02-13 20:46:29 +04:00
Evgeny Gerashchenko
aeade9e68d
Regenerated default protobuf.
2014-02-13 20:46:28 +04:00
Evgeny Gerashchenko
846ee2c8ac
Introduced protobuf generating script.
...
It generates two variants: lite (for runtime usage) and debug (for
tests).
2014-02-13 20:46:28 +04:00
Alexander Udalov
8b918ef1aa
Add regression tests for obsolete issues
...
#KT-1291 Obsolete
#KT-2895 Obsolete
#KT-3060 Obsolete
#KT-3298 Obsolete
#KT-3613 Obsolete
#KT-3862 Obsolete
2014-02-13 04:43:53 +04:00
Natalia Ukhorskaya
320c23494f
Add method to MockPsiDocumentManager to update kotlin plugin to IDEA 13.1 (134.1007)
2014-02-12 22:10:42 +04:00
Alexander Udalov
0b08d03bd6
Minor refactorings in codegen contexts
...
Add assertions, nullability annotations, fix formatting, etc.
2014-02-12 19:32:59 +04:00
Alexander Udalov
a98434263b
Add regression test for outdated issue
...
#KT-3738 Obsolete
2014-02-12 19:17:55 +04:00
Alexander Udalov
35c7c4afd8
Fix capturing outer this in some cases in JVM codegen
...
When property initializer of some inner entity (e.g. anonymous object) contains
a reference to some outer entity (say, a property of the outer class), we need
to make sure we called "lookupInContext" on this entity's owner class, so that
"setCaptureThis" was called on the appropriate closure
#KT-4176 Fixed
2014-02-12 19:17:55 +04:00
Natalia Ukhorskaya
7bf26283b2
Add implementation of PsiDocumentManager to update kotlin plugin to IDEA 13.1 (134.1007)
2014-02-12 18:00:44 +04:00
Svetlana Isakova
70374ea9be
KT-4529 Lambdas are analyzed improperly in an infix call nested inside a println
...
#KT-4529 Fixed
2014-02-12 14:47:10 +04:00
Svetlana Isakova
2ebe8fd6a2
improvements after review in constraint system tests
2014-02-12 12:48:15 +04:00
Svetlana Isakova
4c1c9f8407
do not record smart cast to not nullable type separately
2014-02-12 12:48:14 +04:00
Svetlana Isakova
9063b3803e
record smartcast to the most specific type
2014-02-12 12:48:14 +04:00
Svetlana Isakova
9832676701
generate constraint system tests
...
more tests added
2014-02-12 12:48:13 +04:00
Svetlana Isakova
791fa22abb
KT-4405 Control-flow analysis is not performed for some local declarations #KT-4405 Fixed
2014-02-12 12:48:13 +04:00
Svetlana Isakova
aa713ef1f6
generate pseudocode for property accessor only if the property is local
...
otherwise check it independently like a function
2014-02-12 12:48:12 +04:00
Svetlana Isakova
1c4db84d92
do not try properties named 'invoke' when resolve 'invoke'
2014-02-12 12:48:12 +04:00