Denis Zharkov
435cafed99
Minor. Cleanup KotlinParsing code
2016-09-19 20:22:57 +03:00
Nikolay Krasko
d96863da93
Fix severe freezes because of long lint checks on large files (KT-13071)
...
- Run lint analyze under indicator with write action priority. Otherwise ProgressManager.checkCanceled() checks doesn't work
- Move ProgressManager.checkCanceled() up or they are not called in large files without lint warnings
#KT-13071 Fixed
2016-09-19 18:53:52 +03:00
Nikolay Krasko
131e77927a
Skip lazy parsable lambdas without actually parsing them
2016-09-19 18:53:51 +03:00
Alexander Udalov
c91f77f2a4
Rename LanguageFeatureSettings -> LanguageVersionSettings
2016-09-19 15:21:24 +03:00
Alexander Udalov
aec31bd88f
Uninherit LanguageVersion from LanguageFeatureSettings
...
Introduce LanguageVersionSettingsImpl to store everything related to the
selected language version
2016-09-19 15:20:47 +03:00
Alexey Andreev
7dbada0d06
JS: repair serialization of type aliases
2016-09-19 12:30:32 +03:00
Alexey Andreev
9dd6c9a65c
KT-13664: write values of long compile-time constants as constants. Fix #KT-13664
2016-09-19 12:29:58 +03:00
Mikhail Glukhikh
1e5fb91d7d
Minor refactoring: convert to expression body
2016-09-19 11:45:38 +03:00
Mikhail Glukhikh
909b9b6463
J2K fix: do not use auto-conversion of accessors to = Unit format
2016-09-19 11:07:24 +03:00
Mikhail Glukhikh
4509cd43cb
Convert to expression body fix: do not allow = Unit for constructors
2016-09-19 10:58:37 +03:00
Mikhail Glukhikh
24c7efd323
Minor: WITH_RUNTIME removed from a set of intention tests
2016-09-19 10:57:16 +03:00
Mikhail Glukhikh
9ad820205e
Partial build fix (new convert to expression body opportunity in quick-fixes)
2016-09-19 10:37:39 +03:00
Mikhail Glukhikh
608368997c
Add function to supertype immediately removes redundant modifiers #KT-12297 Fixed
2016-09-16 16:26:01 +03:00
Mikhail Glukhikh
32d11c35a4
KT-12297 related: make not open quick-fix for REDUNDANT_OPEN_IN_INTERFACE
2016-09-16 16:25:57 +03:00
Dmitry Petrov
34240e2ff9
Create special descriptor for an object corresponding to type alias.
2016-09-16 15:44:44 +03:00
shiraji
4f49444f3b
Allow to convert empty Unit returning functions to expression form #KT-13588 Fixed
2016-09-16 15:31:13 +03:00
Alexey Sedunov
cf28dd04c8
Shorten References: Compare resolved calls when shortening receiver of qualified call expression
...
#KT-13660 Fixed
2016-09-16 13:13:30 +03:00
Mikhail Glukhikh
c1296e2134
Retain nullability information for type alias arguments which are in turn type aliases #KT-13835 Fixed
2016-09-16 10:30:43 +03:00
Alexander Udalov
090d157f86
Update test data for data classes
2016-09-15 16:45:48 +03:00
Alexander Udalov
fea116f14e
Allow data classes to implement equals/hashCode/toString from base classes
...
#KT-11306 Fixed
2016-09-15 16:45:48 +03:00
Alexander Udalov
98f6ea577a
Move data class-related functions to DataClassDescriptorResolver
2016-09-15 16:45:48 +03:00
Alexander Udalov
22f8e7db3b
Use independent context to type-check LHS of '::'
...
#KT-13110 Fixed
2016-09-15 16:45:48 +03:00
Alexey Sedunov
84aa82e73c
Misc: Move conflict checking to moveConflictUtils.kt
2016-09-15 16:22:52 +03:00
Alexey Sedunov
54faac1cee
Pull Up: Drop 'override' modifier if moved member doesn't override anything
2016-09-15 16:22:51 +03:00
Alexey Sedunov
dddb4fd792
Introduce Lambda Parameter: Use IDEA-provided action
2016-09-15 16:22:50 +03:00
Alexey Sedunov
f0a298e27b
Minor: Fix NPE in MoveKotlinTopLevelDeclarationsDialog
...
#KT-13856 Fixed
2016-09-15 16:22:49 +03:00
Mikhail Glukhikh
f973be22e2
IntentionBasedInspection minor refactoring: inspectionRange --> inspectionTarget
2016-09-15 14:26:40 +03:00
shiraji
e4c873dc6a
Add inspection + intention to replace .let { it.foo() } with .foo() #KT-13551 Fixed
2016-09-15 14:26:06 +03:00
Mikhail Glukhikh
cdf4309e04
Speed search is enable in add import action #KT-13326 Fixed
2016-09-15 14:03:53 +03:00
Denis Zharkov
556df93ca7
Refine diagnostic about type arguments for an outer class
...
#KT-11263 Fixed
2016-09-15 10:33:19 +03:00
Denis Zharkov
7ca84649d7
Fix implicit type arguments resolution for inner classes
...
When resolving arguments on inner classifier, one can omit the arguments
for outer class 'Outer' if they are present implicitly in the scope:
- One of the supertypes of current class is Outer
- One of the outer classes or one of their supertypes is Outer
Relevant arguments are obtained from the first type found by
the algorithm above
Note that before this commit implicit arguments were only been searched
in containing classes
#KT-11123 Fixed
2016-09-15 10:33:19 +03:00
Denis Zharkov
15c0901a72
Minor. Add covariant override for TypeParameterDescriptor.original
2016-09-15 10:33:19 +03:00
Ilya Gorbunov
3471b3311f
Fix js RegExp test not to rely on array equality. #KT-8283
2016-09-14 20:41:41 +03:00
Alexey Tsvetkov
7b99730e39
Test that typealias works with Gradle
...
#KT-13204 Obsolete
2016-09-14 18:30:02 +03:00
Alexey Andreev
dd062bfd6d
JS: add explanation to inline/arrayLiteralAliasing.kt test
2016-09-14 16:37:54 +03:00
Alexey Andreev
a9330057cc
KT-8283: fix Kotlin.equals method to compare arrays by reference
2016-09-14 16:37:53 +03:00
Alexey Tsvetkov
a04d60406b
Fix snapshot version in gradle tests
2016-09-14 14:13:59 +03:00
Alexey Tsvetkov
1bac872047
Do not try to remove source annotations from not .class file
2016-09-14 13:53:35 +03:00
Alexey Tsvetkov
d2677c0500
Change directory for sync task cache #KT-13732 fixed
2016-09-14 13:53:08 +03:00
Alexey Tsvetkov
508b965d88
Minor: fix gradle plugin order in test
2016-09-14 13:53:04 +03:00
Alexey Tsvetkov
6ebb50751c
Remove source annotations when copy class with kapt2
...
Writing source annotations enables incremental compilation for kapt2.
However they are not needed in bytecode, so we remove them when
copying classes.
# Conflicts:
# compiler/cli/src/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.kt
# compiler/frontend.java/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java
2016-09-14 13:52:56 +03:00
Alexey Andreev
5534350fd6
KT-7397: use reference comparison (===) when translating a is A, where A is an object. Use more sophisticated check for reified parameters.
2016-09-14 13:16:24 +03:00
Alexey Andreev
5d34f5fb75
KT-13836: fix generation of FQN of secondary constructor when it's called via typealias. Fix #KT-13836
2016-09-14 12:40:01 +03:00
Simon Ogorodnik
115d63a2f3
#KT-13750 fix ( #951 )
2016-09-13 18:12:22 +03:00
Valentin Kipyatkov
19ef29e96c
KT-12949 Type aliases are not considered for import when there is an unresolved reference
...
#KT-12949 Fixed
2016-09-13 17:47:39 +03:00
Valentin Kipyatkov
e41ab2a270
Better presentation of aliases in completion list
2016-09-13 17:47:38 +03:00
Valentin Kipyatkov
50a0f9a4a7
KT-13266 Non-imported type aliases do not appear in completion
...
#KT-13266 Fixed
2016-09-13 17:47:38 +03:00
Valentin Kipyatkov
fcce1e3838
KT-12852 Support breadcrumbs for Kotlin
...
#KT-12852 Fixed
2016-09-13 17:46:16 +03:00
Dmitry Petrov
dae4521c68
KT-13822 Exception in the compiler for start-projection of a type alias
...
Use ClassifierWithTypeParameters in StarProjectionImpl.
2016-09-13 15:09:47 +03:00
Alexander Udalov
5b047684ab
Use collections instead of sequences in KClassImpl.Data
...
Create less intermediate objects in extensions in KClasses.kt
2016-09-13 14:12:35 +03:00