Commit Graph

23733 Commits

Author SHA1 Message Date
Alexey Sedunov e9b2732aa9 Minor: Drop unused class 2015-07-03 18:38:03 +03:00
Alexey Sedunov 161539f3da Change Signature: val/var parameter support 2015-07-03 18:38:02 +03:00
Alexey Sedunov 2ff63d37c2 Change Signature: Property support
#KT-6599 Fixed
2015-07-03 18:38:01 +03:00
Alexey Sedunov c96349f42b Change Signature: Filter out OverriderUsageInfo(s) corresponding to Kotlin
declarations
2015-07-03 18:37:59 +03:00
Alexey Sedunov c66a4d53fd Introduce Variable: Use name entered in template as a variable name
#KT-8358 Fixed
2015-07-03 18:37:58 +03:00
Pavel V. Talanov e135b6ae96 Recompute KotlinResolveCache for synthetic files on project structure modification
Since computed KotlinResolveCache depends on corresponding synthetic files location (namely, moduleFilter), it should be recomputed in this case

The STR for this issue provided by Alexander Udalov:
1. Open a library source, wait for it to be analyzed. In this case library sources are files in the project under core/builtins/src/.
2. Go to project settings and remove the source from the library.
3. Exception now on each file change, out of block doesn't seem to help.
2015-07-03 16:50:51 +03:00
Ilya Gorbunov f7436064d0 Unify componentN templates and add NOTHING_TO_INLINE suppression. 2015-07-03 16:38:10 +03:00
Ilya Gorbunov 9618a3542f Provide getOrElse and getOrNull methods for indexed collections.
Breaking: elementAtOrElse is no longer inlined for Iterables and Sequences.
#KT-6952
2015-07-03 16:38:08 +03:00
Michael Nedzelsky 8cd978bfd8 add tests for KT-8158 make Kotlin compiler invoked from IDEA cancellable 2015-07-03 16:14:08 +03:00
Michael Nedzelsky ea0c14d7ad KotlinJpsBuildTest.kt: minor refactoring after converting 2015-07-03 16:14:04 +03:00
Michael Nedzelsky 13bda2de44 convert KotlinJpsBuildTest to Kotlin: step 1: rename 2015-07-03 16:14:01 +03:00
Michael Nedzelsky e09411f45f convert KotlinJpsBuildTest to Kotlin: step 1: convert body 2015-07-03 16:13:58 +03:00
Evgeny Gerashchenko aa65eb1055 More proper fix for KT-8137/EA-69470: avoiding failed assertion when searching usages of parameter of local class constructor
KT-8137 AE at JetSourceNavigationHelper.convertNamedClassOrObject() on function local class with several constructor parameters

 #KT-8137 fixed
 #EA-69470 fixed
2015-07-03 16:00:06 +03:00
Alexander Udalov 48a8f53551 Fix ClassCastException in SamAdapterOverridabilityCondition
This was happening on the upcoming hierarchy of property getters and setters in
kotlin.reflect. No test added because it's not so easy to come up with a small
example, and because the fix itself is rather trivial
2015-07-03 15:32:20 +03:00
Alexander Udalov fa9dfd94b0 Minor, add ScriptContext#toString 2015-07-03 15:32:19 +03:00
Alexander Udalov 7dcb33fcf2 Minor, don't store type in receiver parameter 2015-07-03 15:32:19 +03:00
Alexander Udalov cd61f6f96b Minor, dump bytecode in REPL test on demand 2015-07-03 15:32:18 +03:00
Alexander Udalov cd847b7cb9 Minor, make JavaMethod#getReturnType non-null
PsiMethod#getReturnType only returns null for constructors, and JavaMethod is
not created for constructors (JavaConstructor is)
2015-07-03 15:32:17 +03:00
Alexander Udalov b064b947ce Minor, add missing kdoc on Function's type parameter 2015-07-03 15:32:17 +03:00
Alexander Udalov c8439ae6fc Minor, rename val EXTENSION_REGISTRY -> extensionRegistry 2015-07-03 15:32:16 +03:00
Alexander Udalov 110d6fa7f1 Don't load irrelevant classes by accident, if resource happens to exist
Check with the containing class or package first, don't load the class if the
container doesn't know about it. This also makes the workaround for
case-insensitive file systems unnecessary
2015-07-03 15:31:48 +03:00
Stanislav Erokhin 1e7b96aec0 replace ArrayList to SmartList 2015-07-02 16:32:46 +03:00
Stanislav Erokhin 2f68cc4c97 Created reset method. 2015-07-02 16:32:45 +03:00
Stanislav Erokhin 298a27951f Use System.nanoTime() instead threadMxBean.getCurrentThreadUserTime() 2015-07-02 16:32:45 +03:00
Stanislav Erokhin 45a3d7ec46 Create performance counter with excluded counters 2015-07-02 16:32:45 +03:00
Stanislav Erokhin d830729ddb change creation of performance counters 2015-07-02 16:32:44 +03:00
Stanislav Erokhin 9974423e2b Disable performance time counters by default 2015-07-02 16:32:44 +03:00
Dmitry Jemerov 94e3b058b2 Merge pull request #712 from zarechenskiy/visitor
Override all methods from based visitor class
2015-07-02 11:39:19 +02:00
Nikolay Krasko d564f44aad Getting decompiled file content through getPsi() doesn't work for local class files
Decompiler view providers are created with EmptyFileManager (see ClassFileDecompiler.decompile()). This makes impossible to create psi file for virtual class file in local file system because parent directory is null in SingleRootFileViewProvider.createFile() pre-check.
2015-07-02 00:49:08 +03:00
Ilya Gorbunov 64379947fd Do not allow using getOrPut on concurrent maps.
#KT-5800 In Progress
2015-07-01 22:33:58 +03:00
Ilya Gorbunov a47325cc30 Provide getOrSet method for ThreadLocal<T: Any>
#KT-7927 Fixed
2015-07-01 22:30:17 +03:00
Mikhail Zarechenskiy 2fcb46bb13 Override all methods from based visitor class 2015-07-01 22:25:28 +03:00
Ilya Gorbunov cb9d9cb77d Delegates.observable and vetoable inline their lambda parameters into ObservableProperty implementation.
ObservableProperty made abstract.
#KT-5388
2015-07-01 22:23:14 +03:00
Ilya Gorbunov 9dbc4e4eef Provide another type of callback to the ObservableProperty which is called after the property value has been changed.
#KT-6866 Fixed
2015-07-01 22:23:11 +03:00
Ilya Gorbunov 61e657567d Increase heap size for compiler up to 2000M 2015-07-01 22:16:17 +03:00
Evgeny Gerashchenko 8e3dd54477 Minor. Converted class with class object to object. 2015-07-01 21:21:35 +03:00
Pavel V. Talanov 15a4782a0c Move CompilationCanceledStatus and related utils to "util" module
It should not be in "frontend" since "jps bare plugin" artifact does not include "frontend" module
2015-07-01 21:21:35 +03:00
Pavel V. Talanov 9a9d70fd98 Decompiler: do not try to render function types with star projections prettily 2015-07-01 20:45:32 +03:00
Evgeny Gerashchenko 8fcbd44ad4 KT-8137 AE at JetSourceNavigationHelper.convertNamedClassOrObject() on function local class with several constructor parameters
#KT-8137
 #EA-69470 fixed
2015-07-01 19:43:54 +03:00
Evgeny Gerashchenko 560654744c Checking exceptions in other threads. E.g. inspections pass thread. 2015-07-01 19:43:54 +03:00
Mikhail Glukhikh bae9a7d7f8 Types are no more rendered for annotation arguments + a swarm of tests corrected accordingly 2015-07-01 16:12:32 +03:00
Nikolay Krasko dde295011b Refactoring: rename file 2015-07-01 14:52:43 +03:00
Nikolay Krasko ef477f99e9 Create file must return new file, as old one can be invalidated (KT-8266)
Invalidation in SingleRootFileViewProvider.getPsiInner()

 #KT-8266 Fixed
2015-07-01 14:52:41 +03:00
Mikhail Glukhikh 7c7a0fb4ea trait to interface (StubInterfaces) 2015-06-30 19:46:33 +03:00
Mikhail Glukhikh 848c2afdb4 "is" over enum entry is now an error + new tests + test fixes 2015-06-30 19:46:30 +03:00
Mikhail Glukhikh e1d3b296e9 Exhaustive when over enum may now use "is" instead of comparison + a pair of tests 2015-06-30 19:46:28 +03:00
Pavel V. Talanov 786cadb08b Fix failing test in container test and add it to generators module test dependencies
This should enable running this test on build server
2015-06-30 17:06:22 +03:00
Pavel V. Talanov b173f96505 Refactor: Remove ScopeProvider, introduce FileScopeProviderImpl
Rename NoFileScopeProvider -> FileScopeProvider.ThrowException, ScopeProvider.AdditionalScopeProvider -> FileScopeProvider.AdditionalScopes
2015-06-30 16:12:23 +03:00
Dmitry Jemerov 7bcc3dd875 correct place for enabling alternative resolve in library configurator 2015-06-30 14:05:30 +02:00
Nikolay Krasko 8bea21a847 Introduce BodyResolveCache for storing resolve function body task in IDE 2015-06-30 13:54:42 +03:00