cketti
91c021c699
Add support for mixed named arguments to parameter info popup
...
Don't display parameter info in square brackets if the caller doesn't
have to use a named argument. This makes the parameter info popup
reflect the new capability introduced with
MixedNamedArgumentsInTheirOwnPosition.
^KT-41645 Fixed
2020-09-03 12:30:27 +02:00
n-p-s
af6e744b65
Allow generate toString(), equals(), and hashCode() to include non-default accessors
...
^KT-15262 Fixed
2020-09-03 12:12:33 +02:00
KotlinIsland
3bf18343f5
Build: Upgrade gradle to 6.6.1
...
[We recommend that you use Gradle 6.6.1 over the initial release of Gradle 6.6](https://github.com/gradle/gradle/releases/tag/v6.6.1 )
2020-09-03 10:50:22 +02:00
Roman Artemev
685b74769d
[JVM IR] Fix lineNumber passing into CoroutineTransformer.
...
- Get it from `IrFile` & `IrElement.startOffset` instead of descriptor
- Unmute stepping tests
2020-09-03 11:37:24 +03:00
Alexander Udalov
5aca8ebda8
Minor, add test case on metadata of lambdas in constructors
...
KT-41465
2020-09-02 20:04:05 +02:00
pyos
6b65a2ea7d
JVM_IR: move classes out of lambdas inlined into initializers
...
Fixes KT-41465
2020-09-02 20:03:38 +02:00
Florian Kistner
9775a2148a
203: Fix compilation
2020-09-02 18:48:57 +02:00
Pavel Kirpichenkov
9d12df28c1
[FIR-IDE] Add idea-fir test runtime dep for fir plugin only
...
Leads to duplicated bundled resources annotation templates otherwise.
2020-09-02 19:15:07 +03:00
Pavel Kirpichenkov
26982d1b48
[FIR-IDE] Use delegating KtScope for type param scope
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
0d3f1af6e4
Fix imports after rebase
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
5ddf62b30f
[FIR-IDE] Use thread-local cache in completion component
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
f229ae413d
[FIR-IDE] Ignore FirMemberTypeParameterScope in KtScopes
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
dc538d420e
[FIR-IDE] Changes after review
...
Move usage of SingleCandidateResolver into dedicated component from KtFirAnalysisSession.
Add validity assertion, use concurrent map for context cache, provide original PSI when building context.
Update names, make other minor changes.
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
ec072798b1
[FIR-IDE] Hack for checking single candidate resolver in tests
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
2c816d8911
[FIR-IDE] Introduce resolver for a single candidate
...
The purpose of this resolver is to reuse parts of tower resolver in IDE tasks.
For now it can run resolution stages to check suitability of extension receiver.
2020-09-02 19:15:06 +03:00
Roman Artemev
c6a338bcdc
Mute broken stepping JVM IR tests
...
They are broken because of c7b57c0fb3 .
Current debug info generator in IR uses information from descriptors so
removing that break tests.
2020-09-02 17:52:27 +03:00
Alexander Udalov
b8d16f3d46
Add EnclosingMethod information to bytecode listing tests
2020-09-02 16:46:05 +02:00
Alexander Udalov
d4ecde5cb0
Minor, don't use token COROUTINES_PACKAGE in bytecode listing tests
...
Most of the tests that are run both for 1.2 and 1.3 coroutines have
different expectation .txt files anyway.
2020-09-02 16:46:05 +02:00
Alexander Udalov
24aee1cce3
JVM IR: unmute tests on anonymous objects in inline lambdas
...
All tests on anonymous objects should use the NO_CHECK_LAMBDA_INLINING
directive, since the test framework can't tell an anonymous object from
a lambda and checking that anonymous objects are "inlined" makes no
sense.
2020-09-02 16:46:04 +02:00
Alexander Udalov
e7937db8fa
Add link to the online docs to kotlinc's help
...
#KT-35111 Fixed
2020-09-02 16:45:56 +02:00
Alexander Udalov
6b05e1d179
Add warning to 'kotlinc.bat help' that delimiters need to be escaped
...
Related to KT-41303, KT-41309.
2020-09-02 16:45:40 +02:00
Roman Artemev
2612609664
[JS] Add test for KT-39378
2020-09-02 14:42:17 +03:00
Roman Golyshev
3d5ec8aa10
FIR Completion: Add simple classifiers completion
...
- This also fixes a few test
2020-09-02 14:32:53 +03:00
Roman Golyshev
64645c5049
FIR Completion: Refactor KotlinAvailableScopesCompletionProvider
...
- Move different types of completion to separate functions
2020-09-02 14:32:53 +03:00
Roman Golyshev
0375a19e78
FIR Completion: Refactor KotlinAvailableScopesCompletionProvider
2020-09-02 14:32:53 +03:00
Roman Golyshev
1ab246f71e
FIR Completion: Drop originalPosition parameter from getScopeContextForPosition
...
- It is easier to retrieve the original enclosing function by the fake
enclosing function than trying to correct the `originalPosition` in
different situations
2020-09-02 14:32:52 +03:00
Roman Golyshev
ab5059e08e
FIR Completion: Rename FIR completion classes to be more uniform
2020-09-02 14:32:52 +03:00
Leonid Startsev
c881347110
Use correct return type for constructor call when creating EnumDescriptor
...
Previous one was converted using obsolete API, which caused unbound symbols to appear.
#KT-41321 Fixed
2020-09-02 13:22:23 +03:00
Leonid Startsev
8b0bb430e7
Fix multiple serialization plugin problems
...
Do not use fallback serializer if it is the same (fixes
https://github.com/Kotlin/kotlinx.serialization/issues/957 ).
Use correct number of serializable KClasses when creating sealed class
serializer (fixes https://github.com/Kotlin/kotlinx.serialization/issues/925 ).
2020-09-02 13:22:23 +03:00
Ilya Kirillov
106d8e74d4
FIR IDE: unmute passing completion tests
2020-09-02 11:16:20 +03:00
Ilya Kirillov
775dc7b135
FIR IDE: add type parameters support to completion
2020-09-02 11:16:20 +03:00
Ilya Kirillov
6d18bb6ba2
FIR IDE: add type parameters support to scopes
2020-09-02 11:16:19 +03:00
Ilya Kirillov
c0e9f05921
FIR: make FirTypeParameterScope to be name aware
2020-09-02 11:16:18 +03:00
Ilya Kirillov
7a1b1efef3
FIR IDE: register missing Java specific components for libraries session
2020-09-02 11:16:18 +03:00
Ilya Kirillov
162a2ac7b0
FIR IDE: fix lazy resolve for non local declaration without containing class
2020-09-02 11:16:17 +03:00
Ilya Kirillov
87898021a1
FIR IDE: introduce multi module lazy resolve tests
2020-09-02 11:16:17 +03:00
Ilya Kirillov
8714ad575f
FIR IDE: move FIR IDE completion tests to idea-fir module
2020-09-02 11:16:16 +03:00
Ilya Kirillov
7cb3f62f51
FIR IDE: remove IGNORE_FIR from passing resolve tests
2020-09-02 11:16:16 +03:00
Ilya Kirillov
31f2c4a857
FIR: add fake source element to implicit function return statement
2020-09-02 11:16:16 +03:00
Ilya Kirillov
1ccf8bfb67
FIR IDE: fix completion in function with expression body
2020-09-02 11:16:15 +03:00
Mikhail Glukhikh
7c0467944d
FullPipelineModularizedTest: fix compilation
2020-09-01 21:58:26 +03:00
Mikhail Glukhikh
0324c0d02f
FullPipelineModularizedTest: code cleanup
2020-09-01 21:51:49 +03:00
Ilya Goncharov
9f27bc62c0
[Gradle, JS] Args should concat after input file
...
^KT-41286 fixed
2020-09-01 19:15:13 +03:00
Roman Artemev
fdbc657656
[IR] Fix isFileClass checker
2020-09-01 18:53:17 +03:00
Ivan Gavrilovic
91b99da7a0
KT-41313: Only load .jar files when locating annotation processors
...
Previously, we'd only check if file exists and try to load it. However,
some compile classpaths may contain .tar.gz files.
Test: ProcessorLoaderTest
2020-09-02 00:48:25 +09:00
Ilya Goncharov
b9bc11d5e0
[Gradle, JS] Consider custom launcher's base
...
^KT-41475 fixed
2020-09-01 17:47:25 +03:00
Denis Zharkov
02b72e16ef
FIR: Temporary weaken required phase in ensureResolvedForCalls
...
Currently, lazy resolution in IDE immediately starts common body resolution
after STATUS (that lead to loops during recursive resolve)
2020-09-01 17:43:30 +03:00
Denis Zharkov
b0a7960b42
FIR: Call ensureResolved(TYPES) when computing supertypes of a class
2020-09-01 17:43:30 +03:00
Denis Zharkov
8427cc373f
FIR: Fix coroutines related IDE exception from TowerResolveManager
...
Do not try to steal tasks in suspendResolverTask
Otherwise, it might lead to resuming current coroutine through
"resume" methods that is kind of illegal when using suspendCoroutineUninterceptedOrReturn
2020-09-01 17:43:30 +03:00
Denis Zharkov
d532529c30
FIR: Add workaround for recursive contracts in ensureResolvedForCalls
2020-09-01 17:43:30 +03:00