Simon Ogorodnik
3ff0287c9f
New J2K: Stub for JavaField initializer
2019-04-03 11:18:20 +03:00
Simon Ogorodnik
e77fe74284
New J2K: Add Block primitive
2019-04-03 11:18:20 +03:00
Simon Ogorodnik
7ce3c57896
New J2K: Add some primitive tests for new converter
2019-04-03 11:18:19 +03:00
Simon Ogorodnik
66d6ac745f
New J2K: Implement basic output generation
2019-04-03 11:18:18 +03:00
Simon Ogorodnik
5fd3a78dbe
New J2K: Add basic tree structure and visitor generation script
2019-04-03 11:18:18 +03:00
Simon Ogorodnik
9d9dbb4c25
New J2K: Add stub for JKTree builder
2019-04-03 11:18:17 +03:00
Simon Ogorodnik
f50254d555
New J2K: Move TODO to NewJavaToKotlinConverter
2019-04-03 11:18:17 +03:00
Simon Ogorodnik
ff0b09f77b
New J2K: Replicate J2K Single File test for New J2K
2019-04-03 11:18:16 +03:00
Simon Ogorodnik
b151e9c48c
New J2K: Add New J2K entry-point stub
2019-04-03 11:18:15 +03:00
Simon Ogorodnik
fb49267819
New J2K: Cleanup J2K single file test and make it extensible
2019-04-03 11:18:15 +03:00
Simon Ogorodnik
f2595e58e5
New J2K: Add newSrc source root for J2K
2019-04-03 11:18:14 +03:00
Simon Ogorodnik
1fd5738a60
Add kapt3-idea to J2K classpath to avoid spam in logs
2019-04-03 11:18:14 +03:00
Vyacheslav Gerasimov
394031a183
Build: Fix upload_plugins.gradle broken after migration to gradle 5.0
...
`<< {` syntax is removed since gradle 5.0
2019-04-02 23:14:23 +03:00
Ilya Gorbunov
04bbf23936
Add explicit imports of kotlin.ranges more specific functions
...
The extensions 'contains' and 'reversed' from kotlin.ranges can be more
specific for IntRange, LongRange, etc than the same functions from
kotlin.collections, yet they lose in overload resolution to the latter
ones when invoked from kotlin.collections package
because of same package package extensions are preferred (KT-30633).
2019-04-02 21:28:33 +03:00
Ilya Gorbunov
d77f76bdb0
Clarify wording in Random.nextInt/Long/UInt/ULong docs
...
#KT-30704 Fixed
2019-04-02 21:28:32 +03:00
Andrey Uskov
792fae4afc
Optimize memory usage during import of MPP projects
...
#KT-30767 Fixed
2019-04-02 21:23:07 +03:00
Dmitry Gridin
3ca1c7b55d
"Convert property to function" intention should warn about the property overloads at child class constructor
...
#KT-29764 Fixed
2019-04-02 22:53:56 +07:00
Dmitry Gridin
c8ea62a0d9
Change function signature should change type parameters
...
#KT-22896 Fixed
2019-04-02 22:53:13 +07:00
Dmitry Gridin
5e613554ee
Minor: refactoring ChangeMemberFunctionSignatureFix
2019-04-02 22:53:13 +07:00
Dmitry Gridin
c48c274e59
Minor: refactoring ChangeFunctionSignature quickfix
2019-04-02 22:53:13 +07:00
Ilya Matveev
cb38f13399
Gradle plugin: Enable missing mingw_x86 target for K/N
2019-04-02 20:59:12 +07:00
Alexander Gorshenev
4332ce9884
Grab constructor call type parameters from its class, not from the contructor
2019-04-02 16:55:58 +03:00
Toshiaki Kameyama
e082522cdf
Strip trailing spaces on Save: do not strip trailing spaces inside raw String
...
#KT-13048 Fixed
2019-04-02 15:27:08 +03:00
Ting-Yuan Huang
9fc869397d
IrBuiltins: refactoring for equality checks
...
Previously,
* Equals performs IEEE 754 equality check for floating points and
byte-to-byte checks for other types, including references.
* Ieee754Equals performs IEEE 754 for primitive types
* TotalOrderEquals performs total order equals to all types, including
floating points.
Now it is simplified,
* Equals performs total order checks for all types.
* Ieee754Equals performs IEEE 754 for primitive types.
* (TotalOrderEquals is removed.)
2019-04-02 13:16:31 +02:00
Ilya Chernikov
9ddb64288c
Avoid warning about scripting subplugin for MPP project
...
Temporary solution, the subplugin should be adapted to the new MPP
#KT-30742 fixed
2019-04-02 12:28:06 +02:00
Mikhail Zarechenskiy
63bdabcfae
[NI] Clean up after merge with 3998e842
2019-04-02 12:21:15 +03:00
Mikhail Zarechenskiy
c458393e2f
[NI] Do not avoid trivial constraints if they aren't from upper bounds
...
Since we skipped trivial constraint with `Any?` from parameter type of
function `equals`, the compiler thought that there is no proper
constraints (upper bounds do not matter here) and marked resolved
call as a failed one, then diagnostic about missing equals was added
Also, tune `TrivialConstraintTypeInferenceOracle` for `Any?`-like
constraints
#KT-30724 Fixed
2019-04-02 12:21:14 +03:00
Mikhail Zarechenskiy
5fa518fd55
Revert "Temporary fix for NI to compile against bootstrap compiler"
...
This reverts commit 791ab05e08 .
Problem was fixed in 4a1b9dcc & 1ac35420
2019-04-02 12:21:14 +03:00
Nikolay Krasko
5723bfdcaf
Add a point about invalidated state between inspection checks and quick-fix run
2019-04-02 11:48:47 +03:00
Burak Eregar
9ab54d0e44
Fix: String templates suggest removing curly braces for backtick escaped identifiers
2019-04-02 11:48:47 +03:00
Toshiaki Kameyama
17a4506575
Keyword completion: complete data class with parentheses
...
#KT-30511 Fixed
2019-04-02 11:48:47 +03:00
Nikolay Krasko
f1a31652b3
Add action for collection basic information about Kotlin project (KT-11242)
...
#KT-11242 Fixed
2019-04-02 11:48:47 +03:00
Sergey Rostov
3465a30201
JPS Build: exclude intellij-core that comes from android tools
...
#KT-30247 Fixed
2019-04-02 09:27:26 +03:00
Toshiaki Kameyama
61f3e776a7
Add 'Covariant equals' inspection
...
#KT-29798 Fixed
2019-04-02 13:19:05 +07:00
Simon Ogorodnik
3998e842f1
Abstract NewInference & related from KotlinType
...
Cleanup TypeConstructors & KotlinTypes in VariableFixationFinder
Cleanup TypeConstructors & KotlinTypes in TypeVariableDirectionCalculator
Cleanup KotlinTypes in TypeCheckerContext for ConstraintSystem
Cleanup KotlinTypes in NewCommonSuperTypeCalculator
Cleanup KotlinTypes in TypeApproximator
Cleanup type substitution
Cleanup NewTypeVariable
Cleanup StubType
Cleanup TypeCheckerContext creation, extract common supertype context
Provide TypeSystemInferenceExtensionContext via dependency injection
2019-04-01 22:08:04 +03:00
Leonid Startsev
0ffded5bac
Insert correct dispatch receivers and type arguments for expression inside generated by plugin IR functions
2019-04-01 18:54:16 +03:00
Ilya Chernikov
075a902ceb
Revert createClassLikeInfo method signature change, depreceate it ...
...
instead and make alternative method for refactored usages.
Should fix compatibility with the Spek framework plugin.
2019-04-01 17:37:33 +02:00
Ilmir Usmanov
070fb7c250
Fix test data
2019-04-01 18:19:34 +03:00
Ilmir Usmanov
d2a80e7938
Add $result to suspend functions' LVT
...
#KT-28535
2019-04-01 18:19:32 +03:00
Ilmir Usmanov
05937a28ee
Rename result to $result
...
this way it does not interfere with user-defined variables.
#KT-28535 Fixed
2019-04-01 18:19:31 +03:00
Alexander Podkhalyuzin
742ffb98ad
Use indexes instead of slow directory search for script dependencies
...
#KT-30018 Comment
2019-04-01 17:54:28 +03:00
Natalia Selezneva
0de0321fa9
Do not call FileEditorManager.getSelectedEditor outside UI thread (KT-30130)
...
^KT-30130 Fixed
2019-04-01 14:28:17 +03:00
Sergey Rostov
0e0c78317d
Gradle, Kotlin/JS: enable source maps by default, get it working on tests.
...
Publish kotlin-test-nodejs-runner separately from kotlin-gradle-plugin.
2019-04-01 08:42:10 +03:00
Mikhail Zarechenskiy
a4cbec64b7
[NI] Remove failing codegen tests and add similar diagnostic one
...
These tests were added for suspend-conversions, it worked only
with new inference, but implementation was incorrect and had other
bugs, which were fixed in 1ac25259 .
Support of suspend-conversions will be addressed later with a different
implementation (#KT-30703)
2019-04-01 01:36:15 +03:00
Toshiaki Kameyama
4a3e4f099d
KT-30451 Redundant call of selector in maxBy&minBy
...
Refactor maxBy & minBy: do not call selector when collection has single item
2019-03-31 05:11:05 +03:00
Ilmir Usmanov
8c8ad48152
Enable test
2019-03-30 04:18:55 +03:00
Ilmir Usmanov
ea1e72e7b4
Generate $this$<label> as receiver name instead of $receiver
2019-03-30 04:18:53 +03:00
Ilmir Usmanov
6f14dcfacb
Put suspend lambda's parameters to LVT
...
#KT-26412 Fixed
#KT-28534 Fixed
2019-03-30 04:18:50 +03:00
LepilkinaElena
21fe5ac415
Fix parser for linkerOpts/compilerOpts (KT-29970) ( #2219 )
2019-03-29 20:13:23 +03:00
Dmitry Gridin
09b58403b9
Improve "ReplaceWith" for class with generic parameter
...
#KT-27089 Fixed
2019-03-29 22:35:03 +07:00