Pavel V. Talanov
818a6b5c2e
Fix various tests and test data
...
Since we now distinguish between binaries and java source roots
2015-04-16 16:40:37 +03:00
Pavel V. Talanov
d76f293dc9
Speed up finding kotlin binaries and java files in CLI
...
Change VirtualFileFinder api to accept ClassId and adjust usages
Introduce KotlinCoreProjectEnvironment to create special KotlinCliJavaFileManager which shares cache with CliVirtualFileFinder
Truly distinguish between java source roots and binary roots: don't search for source files in classpath and vica versa
Implement JvmDependenciesIndex
2015-04-16 16:40:28 +03:00
Pavel V. Talanov
94cc847c48
Drop module "ktm" scripts and support java source roots in "xml" modules
...
Drop kotlin.modules package from runtime
Move adapted classes into compiler
Unsupport files with "ktm" extension
Delete code for loading module scripts
Drop tests for module scripts
Separate section for java source roots in xml script generator/parser
2015-04-16 16:40:19 +03:00
Pavel V. Talanov
09947d8f58
Move dangerous ClassId.fromString() to test
2015-04-16 16:40:12 +03:00
Natalia Ukhorskaya
336886f115
Fix KotlinBytecodeToolWindow: show bytecode correctly when there is inline function from another module
...
#KT-7409 Fixed
2015-04-16 14:55:29 +03:00
Natalia Ukhorskaya
06eb749f5a
Android tests: copy kotlin-reflect.jar to test android application
2015-04-16 14:48:54 +03:00
Alexander Udalov
ccae0311c3
Merge InlineDescriptorUtils to InlineUtil
2015-04-16 14:35:07 +03:00
Alexander Udalov
16e6bc347f
Move inline-related stuff from 'descriptors' to 'frontend'
...
Move to package org.jetbrains.kotlin.resolve.inline
2015-04-16 14:35:06 +03:00
Alexander Udalov
d93a7a9547
Minor, simplify some checks in InlineUtil
2015-04-16 14:35:05 +03:00
Alexander Udalov
7cbbc5f98d
Minor, rename InlineUtil.getInlineType -> getInlineStrategy
2015-04-16 13:55:07 +03:00
Alexander Udalov
4a2fac6f40
Add utility InlineUtil.isInline instead of interface method in SimpleFunctionDescriptor
...
Also fix some warnings and reformat along the way
2015-04-16 13:55:07 +03:00
Alexander Udalov
9ed8ad8dd4
Replace eager assert with lazy in PseudocodeVariableDataCollector
...
For some reason some IDE tests would fail after the simple change. Add explicit
toString() call on the descriptor, to be investigated later
2015-04-16 13:55:06 +03:00
Alexander Udalov
1b0a78077f
Use assert with lazy message in project instead of eager one
2015-04-16 13:55:06 +03:00
Alexander Udalov
44e35cad29
Make 'sure' an inline function with a lazy parameter
...
Also replace some other non-lazy stdlib function usages with the new lazy
'sure'
2015-04-16 13:55:06 +03:00
Denis Zharkov
b2a2e4ae92
Add bytecodeText test for annotation with default value
...
It checks that no value is emitted if argument is not specified
2015-04-16 10:40:20 +03:00
Denis Zharkov
97e4a899cf
Add specific warning when KClass literal expected
2015-04-16 10:40:20 +03:00
Denis Zharkov
98ffa3b475
Render Class-constant as javaClass<T>()
2015-04-16 10:40:20 +03:00
Denis Zharkov
2a03994ecb
JVM: Write signature for annotation parameter
2015-04-16 10:40:20 +03:00
Denis Zharkov
294eb1dceb
Load annotation parameter's type for ctr as contravariant
...
See comment in code
2015-04-16 10:40:20 +03:00
Denis Zharkov
8f0e290dec
Create additional constructor for java annotation with Class-parameter
...
One of them with KClass<*> parameters and other with java.lang.Class<*>.
It's needed just for backward compatibility, and second one is deprecared.
2015-04-16 10:40:20 +03:00
Denis Zharkov
f5111180c3
Load Class<?> as KClass<*> for Java annotations parameters
2015-04-16 10:40:20 +03:00
Denis Zharkov
0abc63261d
Inject reflectionTypes into LazyJavaResolverContext
2015-04-16 10:40:20 +03:00
Denis Zharkov
07a4e8a405
Minor, move module property to LazyJavaResolverContext
...
All usages of LazyJavaPackageFragmentProvider.module
got it through LazyJavaResolverContext
2015-04-16 10:40:19 +03:00
Denis Zharkov
f942f6ac8e
Move ReflectionTypes to builtins
2015-04-16 10:40:19 +03:00
Denis Zharkov
cc17f7d82d
JVM: Support using KClass as annotation parameter type
2015-04-16 10:40:19 +03:00
Denis Zharkov
82674e56b9
Frontend: Allow using KClass as annotation parameter type
2015-04-16 10:40:19 +03:00
Nikolay Krasko
c155b1a455
Set permissions for kotlin compiler on linux and mac even on teamcity
2015-04-16 02:27:50 +03:00
Nikolay Krasko
e9fcdec3b0
Always download bootstrap compiler to "dependencies\bootstrap-compiler"
2015-04-16 00:25:04 +03:00
Nikolay Krasko
1c4335ec25
Test background threads are stopped
2015-04-16 00:25:03 +03:00
Nikolay Krasko
e304ee0a29
Print project name and command line for debug
2015-04-16 00:25:03 +03:00
Nikolay Krasko
8ed54a6dba
Additional stop for JobScheduler
...
Background threads prevents class loader collect
#KT-7172 In Progress
2015-04-16 00:25:02 +03:00
Nikolay Krasko
ea47e29757
Update ZipFileCache and LowMemoryWatcher from new Idea
2015-04-16 00:25:01 +03:00
Alexey Sedunov
d036edb5c6
Extraction Engine: Respect smart casts applied to "this" references
...
#KT-7447
2015-04-15 23:20:54 +03:00
Alexey Sedunov
aa0930ea60
Change Signature: Skip secondary constructor calls when looking for primary constructor usages
...
#KT-7445 Fixed
2015-04-15 23:20:52 +03:00
Alexey Sedunov
02b0c4c7eb
Name Suggester: Do not strip "get"/"is"/"set" prefixes if remaining sequence is not upper-cased
...
#KT-7399 Fixed
2015-04-15 23:20:51 +03:00
Valentin Kipyatkov
3842d71ee3
simplify code, fix test, use CompletionUtil.findIdentifierPrefix()
2015-04-15 19:59:59 +02:00
Valentin Kipyatkov
be92ad2f2d
# This is a combination of 2 commits.
...
# The first commit's message is:
use more simple API
# This is the 2nd commit message:
More simple code
2015-04-15 19:53:16 +02:00
Dmitry Jemerov
7f5b1d489e
KDoc typed handler: autoinsert pair brackets and parentheses
...
#KT-7347 fixed
2015-04-15 19:53:14 +02:00
Dmitry Jemerov
5bbbadeb37
add a token for inline Markdown links; add test for identifier links with labels
2015-04-15 19:48:46 +02:00
Dmitry Jemerov
2aba59cbec
KDocCompletionContributor code review: use resolution facade instead of KotlinCodeAnalyzer; inherit CompletionSessionBase
2015-04-15 19:48:45 +02:00
Evgeny Gerashchenko
4f412f77d1
Updated some test data so it won't be affected by automatic renamers.
2015-04-15 20:13:51 +03:00
Evgeny Gerashchenko
260b8ae431
Automatic renaming subclasses.
...
#KT-4642 in progress
2015-04-15 19:15:18 +03:00
Evgeny Gerashchenko
e6e5e28e1d
Automatic renaming properties, variables, parameters when renaming class.
...
#KT-4642 in progress
2015-04-15 19:14:20 +03:00
Ilya Gorbunov
a20f1bdb6e
Change the expected diagnostic output after reduce signature has been changed.
2015-04-15 17:34:09 +03:00
Ilya Gorbunov
043b27bfe5
Make more generic signature for reduce and reduceRight methods.
...
Fixes #KT-2287
2015-04-15 17:34:08 +03:00
Michael Nedzelsky
08e92ac746
KT-7357 JS: extension functions from external KJS library couldn't be called in some cases
...
#KT-7357 Fixed
#KT-7382 Fixed
2015-04-15 17:00:08 +03:00
Michael Nedzelsky
6842c98285
JS: tests for KT-7357: extension functions from external KJS library couldn't be called in some cases
2015-04-15 17:00:06 +03:00
Dmitry Jemerov
66aa15f470
pull up "New Kotlin File" action next to "New Java class"
2015-04-15 15:29:26 +02:00
Alexander Udalov
4ad603ba12
Fix AssertionError in JsLibraryStdDetectionUtil
...
#KT-7462 Fixed
2015-04-15 15:23:08 +03:00
Alexander Udalov
aab5d1c3e3
Minor, update built-ins serializer message
...
.kotlin_class_names was deleted and .kotlin_name_table was renamed
2015-04-15 01:16:07 +03:00