Alexander Udalov
6c8f2be1d8
Revert "Fix heavy integer parsing in FunctionN class factory"
...
This reverts commit 9d493d995e .
2015-06-03 15:32:47 +03:00
Alexander Udalov
c18ef6e2ac
Increase buffer size in preloader from 8K to 512K
...
Doesn't seem to improve performance, but cuts down lots of IO file read counts
2015-06-03 15:14:24 +03:00
Alexander Udalov
9d493d995e
Fix heavy integer parsing in FunctionN class factory
...
#KT-7924 Fixed
2015-06-03 15:14:23 +03:00
Pavel V. Talanov
3c791c418d
KotlinSignatureInJavaMarkerProvider: do not report errors on exceptions
...
Fixing it is not in our immediate plans and these exceptions litter our EA and create a bad impression for users, while not really disrupting any workflow
2015-06-03 14:56:10 +03:00
Michael Bogdanov
2377a10007
Fix labeling processing on inlining: suport labeled literals
...
#KT-7273 Fixed
2015-06-03 14:42:57 +03:00
Pavel V. Talanov
f02f663167
Minor: fix test data
2015-06-03 14:29:44 +03:00
Dmitry Jemerov
758b94d3a6
get rid of JetScopeSelectorUtil, inline its contents into Kotlin code
2015-06-03 12:03:15 +02:00
Natalia Ukhorskaya
c57a0440ec
Test stdlib with dx
...
#KT-7003 Fixed
2015-06-03 12:44:02 +03:00
Natalia Ukhorskaya
094119ee63
Fix EA-63657
2015-06-03 12:44:01 +03:00
Natalia Ukhorskaya
c410f1cdfc
Android tests: use ant from dependencies dirs
2015-06-03 12:44:00 +03:00
Dmitry Jemerov
425f91dfc6
some dead code in ResolutionTask
2015-06-02 20:38:02 +02:00
Pavel V. Talanov
04bef2cc08
Minor: Drop unused code and inline utility
2015-06-02 19:19:57 +03:00
Pavel V. Talanov
ccaa779e2f
Minor: fix test
2015-06-02 19:06:27 +03:00
Dmitry Jemerov
4d5c785944
don't create resolve tasks with lists of candidates which are known to be empty
2015-06-02 17:40:13 +02:00
Dmitry Jemerov
365d45f49e
add missing API to retrieve Kotlin source roots from a CompilerConfiguration
2015-06-02 17:22:44 +02:00
Dmitry Jemerov
9672264442
avoid unnecessary and expensive creation of FqName instances
2015-06-02 16:36:03 +02:00
Alexander Udalov
d1df234cfe
Support annotations as annotation arguments in reflection, add test
...
A follow-up to 281acb8 where this was supported in the compiler
2015-06-02 17:31:19 +03:00
Alexander Udalov
158b3ba102
Make parameter names of fictitious function classes non-stable
...
To be able to change them when overriding invoke in subclasses without a
warning
2015-06-02 17:30:58 +03:00
Alexander Udalov
16b20cf910
Fix NoSuchMethodError on FunctionReference#init
2015-06-02 17:29:52 +03:00
Pavel V. Talanov
d2592e4a2c
Companion objects have public visibility by default
...
#KT-7114 Fixed
2015-06-02 16:23:03 +03:00
Dmitry Jemerov
5ba283397b
use more compact map implementation in ObservableBindingTrace
2015-06-02 15:17:25 +02:00
Dmitry Jemerov
f545c9ddac
dispatch directly to the correct visitor function
2015-06-02 15:14:37 +02:00
Ilya Gorbunov
0302dd06f7
Do not call mkdirs when destination file of copyTo doesn't have any parent directory.
...
#KT-7888 Fixed
2015-06-02 15:50:47 +03:00
Pavel V. Talanov
7f70a4ae89
Minor: extract implementation of ResolutionFacade to a separate class
2015-06-02 15:32:02 +03:00
Pavel V. Talanov
a94c13be6d
KotlinCacheService: allow to get ResolveSessionForBodies by module descriptor
...
Utility to resolve import in file by fq name
2015-06-02 15:32:01 +03:00
Valentin Kipyatkov
e60c3f5ee7
DeprecatedSymbolUsageFix: fixed for string template
2015-06-02 14:36:06 +03:00
Valentin Kipyatkov
a5cb1e8c2b
Converted JetExpressionImpl to Kotlin, got rid of code duplication
2015-06-02 14:36:06 +03:00
Valentin Kipyatkov
b012f22edc
DeprecatedCallableAddReplaceWithIntention: fixed for string templates in expression
2015-06-02 14:36:06 +03:00
Valentin Kipyatkov
07cb0a0b08
DeprecatedSymbolUsageFix: refactored code for easier handling of optional arguments
2015-06-02 14:36:06 +03:00
Valentin Kipyatkov
1fdb4429c3
Edited TODOs
2015-06-02 14:36:05 +03:00
Valentin Kipyatkov
134621ce77
DeprecatedSymbolUsageFix: fixed for incorrect annotation arguments
2015-06-02 14:36:05 +03:00
Valentin Kipyatkov
f1d8838bbd
Removed code duplication for getting annotation argument
2015-06-02 14:36:05 +03:00
Valentin Kipyatkov
aefe0dd192
Changed highlighting range and attributes of useless elvis operator
2015-06-02 14:35:19 +03:00
Denis Zharkov
11290ae9e7
Fix wrong assumptions in quickfix
...
Diagnostic is always reported on overriden property
#EA-64407 Fixed
2015-06-02 14:07:49 +03:00
Denis Zharkov
349d5f02ea
Drop wrong assertion about duplicating properties in data class
...
#EA-64269 Fixed
2015-06-02 14:07:49 +03:00
Denis Zharkov
70dbbd8fda
Resolve constructors declared in traits and objects
...
It prevents exceptions and produces less red code
#EA-68667 Fixed
2015-06-02 14:07:49 +03:00
Denis Zharkov
7f9d2e8a36
Refine diagnostics reported on primary constructors
2015-06-02 14:07:49 +03:00
Denis Zharkov
9c574469ca
Parsing: allow primary ctor in object syntactically
...
It's needed for better recovering for cases of changes like 'class' -> 'object'
The only sensible case when it's may be bad:
class A {
object B
constructor() : super()
}
But it seems to be rare, and ';' can be used to separate object from secondary ctor
2015-06-02 14:07:48 +03:00
Denis Zharkov
3f7ca5a586
Do not report diagnostic "ctr in trait" in delegation specifier
...
Constructor declaration in interfaces is prohibited anyway
2015-06-02 13:18:53 +03:00
Denis Zharkov
19e4127f4f
Do not wrap primary ctor of object into ErrorElement
...
It helps to resolve them as for classes
Diagnostic with same content will be reported instead
2015-06-02 13:18:53 +03:00
Denis Zharkov
c054dc19e3
Get rid of assumption that primary ctr is a child of JetClass
...
As it can be contained within JetObjectDeclaration
2015-06-02 13:18:53 +03:00
Denis Zharkov
71b5cd692b
Prettify JetClass and JetObjectDeclaration
2015-06-02 13:18:53 +03:00
Denis Zharkov
8c6264bf2c
Pull constructor-related methods from JetClass to JetClassOrObject
2015-06-02 13:18:53 +03:00
Denis Zharkov
51534f4592
Make JetClassOrObject an abstract class implementing common methods
2015-06-02 13:18:52 +03:00
Denis Zharkov
5b1a5deae4
Convert JetClassOrObject and inheritors: J2K
2015-06-02 13:18:52 +03:00
Denis Zharkov
bfa667f569
Convert JetClassOrObject and inheritors: .java -> .kt
2015-06-02 13:18:52 +03:00
Dmitry Jemerov
cb6ddc5db3
correctly check if we need to process deferred types in body resolver
2015-06-02 11:58:33 +02:00
Dmitry Jemerov
22168aa026
optimize DescriptorUtils.getContainingModuleOrNull() by removing duplicate parent traversal and Class.isInstance() checks
2015-06-02 11:55:16 +02:00
Dmitry Jemerov
252ddf4e2e
delete unused interface KeyNormalizer
2015-06-02 11:52:42 +02:00
Alexander Udalov
d2508c8710
Do not report irrelevant diagnostics on unresolved supertypes
...
Previously the confusing "trait with superclass" was reported when an
unresolved classifier appeared in interface supertypes
2015-06-02 12:30:14 +03:00