Alexander Udalov
be08e33463
Minor, change annotation in test data
...
To fix this case in an upcoming test which adds retention(runtime) to all
annotations (which resulted in duplicate annotation here)
2014-11-11 18:10:43 +03:00
Alexander Udalov
ae3c17d399
Minor, get rid of SAMs in some loadJava tests
2014-11-11 18:10:43 +03:00
Alexander Udalov
66d27fad13
Move utilities out of 'core' to where they are used
2014-11-11 18:10:42 +03:00
Alexander Udalov
d3f210f73c
Move SAM resolution to frontend.java
2014-11-11 18:10:42 +03:00
Alexander Udalov
0b6bb38bb3
Move SAM function type calculation to SamConversionResolver
2014-11-11 18:10:42 +03:00
Alexander Udalov
344c6f0b3f
Move SAM adapter resolution logic to SamConversionResolver
2014-11-11 18:10:41 +03:00
Alexander Udalov
ae78b0e216
Minor, merge two sematically identical functions
2014-11-11 18:10:41 +03:00
Alexander Udalov
4350da5f24
Extract SAM constructor resolution logic to a component
2014-11-11 18:10:40 +03:00
Nikolay Krasko
d6ffd22533
More tests for decompiling classes with wrong abi version
2014-11-11 17:40:26 +03:00
Nikolay Krasko
43eb94726c
Make single decompiler be responsible for compiled Kotlin files
...
IDEA caches link between a virtual file and correspondent FileViewProvider.
This breaks navigation to decompiled sources for the library that has been
just updated because of outdated ABI version.
Also IDEA don't allow to change language for decompiled files.
#KT-6016 Fixed
2014-11-11 17:34:56 +03:00
Nikolay Krasko
5555e28bfb
Refactoring: Modify test for incompatible ABI version
2014-11-11 17:33:13 +03:00
Nikolay Krasko
c242665cd3
Extract isCompatibleAbiVersion from kinds enum and store read kinds even for incompatible version
2014-11-11 17:33:13 +03:00
Nikolay Krasko
95a2dce627
Remove warning and add tests when this warning had been reproducible
2014-11-11 17:33:12 +03:00
Nikolay Krasko
d5bef5e612
Minor: better Kotlin code
2014-11-11 17:33:11 +03:00
Nikolay Krasko
d80c98a8ba
Minor: formatting
2014-11-11 17:33:10 +03:00
Michael Nedzelsky
dd86823480
JS backend: compile some builtins to builtins.js instead of stdlib
2014-11-11 17:09:00 +03:00
Michael Nedzelsky
5f576c4c05
JS backend: test for toGenerator from stdlib
2014-11-11 17:08:56 +03:00
Alexey Sedunov
afeb03f383
Create From Usage: Create class by annotation entry/super-call delegation specifier
2014-11-11 14:42:48 +03:00
Alexey Sedunov
1b1eb10979
Create From Usage: Create class by constructor call
2014-11-11 14:42:45 +03:00
Alexey Sedunov
b8f68acdbb
Create From Usage: Create class by reference expression
2014-11-11 14:42:42 +03:00
Alexey Sedunov
1f14d93412
Create From Usage: Create class by type reference
2014-11-11 14:42:39 +03:00
Alexey Sedunov
a76607beca
Callable Builder: Support class generation
2014-11-11 14:42:37 +03:00
Alexey Sedunov
aaf4283531
JetTypeParameterListOwner: Add getTypeParameterList() and getTypeConstraintList() methods
2014-11-11 14:42:34 +03:00
Alexey Sedunov
7123ca8ea0
Name suggester: Respect type parameter name when suggesting name for
...
variables based on that type parameter
2014-11-10 21:10:39 +03:00
Alexey Sedunov
f81c2d5ff7
Name suggester: Improve name suggestion strategy for type parameters
2014-11-10 21:10:37 +03:00
Alexey Sedunov
7cb77314bc
Callable Builder: Allow to forbid substitution for any TypeInfo
2014-11-10 21:10:37 +03:00
Alexey Sedunov
538248cafa
Callable Builder: Do not skip unused type parameters
2014-11-10 21:10:35 +03:00
Alexey Sedunov
2f98af1a8e
Callable Builder: Do not skip unused type parameters
2014-11-10 21:10:35 +03:00
Alexey Sedunov
88dcd858a6
CallableBuilder: Add option to suppress substitution
2014-11-10 21:10:33 +03:00
Alexey Sedunov
59e4325fc0
Move JetCodeFragment-related logic to JetIntentionActionsFactory
2014-11-10 21:10:33 +03:00
Alexey Sedunov
850f1ebccd
JetIntentionActionsFactory, JetSingleIntentionActionFactory: Translate to Kotlin
2014-11-10 21:10:31 +03:00
Alexey Sedunov
aa2c10446b
JetIntentionActionsFactory, JetSingleIntentionActionFactory: Rename to .kt
2014-11-10 21:10:30 +03:00
Alexey Sedunov
42a74f55da
Create From Usage: Remove "from usage" words from action text
2014-11-10 21:10:29 +03:00
Alexey Sedunov
d343bb4dc3
Move declaration: Create new file when needed
2014-11-10 21:10:27 +03:00
Andrey Breslav
74ec7728c8
Actually create .kt files in the file system for Kotlin multifile tests
2014-11-10 18:38:48 +02:00
Andrey Breslav
993c6d82c2
Minor. Formatting
2014-11-10 17:24:08 +02:00
Andrey Breslav
8dcd81e0b3
KT-6178 False "Overriden methods are not annotated" when using delegation
...
#KT-6178 Fixed
2014-11-10 17:24:07 +02:00
Andrey Breslav
586b7e3dee
Base class for multi-file tests extracted
2014-11-10 17:24:06 +02:00
Andrey Breslav
f16dcdd8a9
Do not annotate Kotlin members returning platform types as @Nullable
...
This leads to pointless warning in Java code
2014-11-10 17:24:06 +02:00
Andrey Breslav
19afb2fcb8
Make candidate resolver force-resolve type arguments on argument count mismatch
2014-11-10 17:24:05 +02:00
Andrey Breslav
4892369cf4
Diagnostic tests are logging their lazy activity
2014-11-10 17:24:04 +02:00
Andrey Breslav
8436147cec
KT-1056 Don't allow passing type arguments to T
...
#KT-1056 Fixed
2014-11-10 17:23:58 +02:00
Andrey Breslav
35766dfa20
Additional/forced resolve for lazy types
2014-11-10 17:23:58 +02:00
Andrey Breslav
7d9be42969
LazinessTokens introduced to enable/disable building lazy types
2014-11-08 15:51:41 +02:00
Andrey Breslav
2334bf4c70
Resolution of type constructors in TypeResolver is now lazy (for types in declarations)
2014-11-08 15:51:41 +02:00
Andrey Breslav
adafd70730
Abstract lazy type moved to descriptors
2014-11-08 15:51:41 +02:00
Andrey Breslav
266262df68
TypeResolver converted to Kotlin
2014-11-08 15:51:40 +02:00
Andrey Breslav
ccc489abfd
Inter-field dependencies fixed for fields used as context
...
The problem was that when GivenExpression was used to initialize a feld, the generator did not know that there's
a dependency on the receiver of the call inside the expression, so it could place the call before the initialization of the receiver,
which caused a compilation error. Now dependencies are tracked explicitly
2014-11-08 15:51:40 +02:00
Svetlana Isakova
fad4261448
KT-6132 No smart completion for argument of java static method
...
#KT-6132 Fixed
2014-11-08 10:36:25 +03:00
Valentin Kipyatkov
d4275e1110
Added test for KT-6132
2014-11-08 10:36:25 +03:00