Stanislav Erokhin
eb4bb9554d
Add ReplaceInvoke adn ReplaceCallWithUnaryOperator intention support
...
Surprisingly all test passed
2021-05-11 12:48:18 +02:00
Stanislav Erokhin
85d9e96632
Partially support call with errors
...
Cases with no candidates or with Ambiguity is not supported yet
2021-05-11 12:48:17 +02:00
Stanislav Erokhin
080a832605
Fix argument mapping for lambda arguments and default arguments
...
Maybe for other elements ValueArgument itself used as SourceElement
2021-05-11 12:48:17 +02:00
Stanislav Erokhin
335c5a03b6
Add correct equals/hashCode to KtSymbolBasedAbstractTypeConstructor
...
Previously there were no equals/hashCode implementation.
Because of that subtyping not working properly. That is because in
subtyping we have checks that type constructors are equals
Also toString was added so now it is a bit easier to debug code
involving the KtSymbolBasedAbstractTypeConstructor
2021-05-11 12:48:16 +02:00
Stanislav Erokhin
dc1ce19db9
Extract some logic from AbstractTypeConstructor to reuse it later
...
In FE10-binding I would like to re-use equal and hashCode mechanics
that was implemented in AbstractTypeConstructor, but I don't need
the supertype implementation, because it already there in FIR
2021-05-11 12:48:16 +02:00
Nikita Bobko
bee8c0bb90
Publish :compiler:test-infrastructure for ide
2021-05-11 12:36:59 +02:00
Vasily Levchenko
c2a46baa77
[build][kotlin-native][test] fix dist dependencies for test targets
2021-05-11 05:47:17 +00:00
Ilmir Usmanov
640d263ae1
Do not unbox nullable Result, since before usage it is coerced
...
#KT-46505
2021-05-11 05:49:24 +02:00
pyos
656c2496a6
JVM_IR: omit bound receiver in IrExpressionLambdaImpl parameters
...
and remove a hack intended to replace the missing type conversions this
caused.
#KT-46505 Fixed
2021-05-11 05:49:20 +02:00
pyos
614d529168
JVM: remove LambdaInfo.invokeMethodDescriptor
2021-05-11 05:49:17 +02:00
Ilya Kirillov
47dc524763
FIR IDE: remove KtUnsubstitutedScope/KtSubstitutedScope as it designed wrong
2021-05-11 01:36:13 +03:00
Ilya Kirillov
90798d8857
FIR IDE: add KDoc for KtScope, choose better names for KtScope members
2021-05-11 01:36:11 +03:00
Ilya Kirillov
f9087a8ab1
FIR IDE: update testdata after changes in symbols
2021-05-11 01:36:10 +03:00
Ilya Kirillov
accc0e3761
FIR IDE: make KtCallableSymbol to be always KtPossiblyExtensionSymbol
2021-05-11 01:36:09 +03:00
Ilya Kirillov
0ba6412f96
FIR IDE: remove KtTypedSymbol interface as all its inheritors are KtCallableSymbol
2021-05-11 01:36:07 +03:00
Jinseong Jeon
bbe5cf0a70
FIR/UAST: clarify what module we should not depend on
2021-05-10 20:23:19 +02:00
Ilya Kirillov
e14848740a
FIR IDE: forbid executing write action inside analyse call
2021-05-10 20:44:23 +03:00
Ilya Muradyan
626c1d3b48
[Scripting] Fix repository ID generation for Maven resolver
2021-05-10 19:40:32 +03:00
Ilya Muradyan
7cea639209
chore: fix typo in comment
2021-05-10 19:40:31 +03:00
Dmitry Petrov
ac0aaff611
JVM_IR KT-46562 don't use LambdaMetafactory for Serializable SAMs
...
TODO support serializable lambdas creation with LambdaMetafactory
2021-05-10 14:54:14 +03:00
Jinseong Jeon
bdfc879f00
FIR checker: report UNINITIALIZED_PARAMETER
2021-05-10 14:26:14 +03:00
Stanislav Erokhin
d2f831b635
Handle exception during intention background computation in tests
...
Our test infrastructure (in particular, muting mechanics) rely on
thrown exception during doTestFor function call. But if the
exception happened on background thread, then here we'll get only
TimeOutException but the actual exception won't be reported during
doTestFor call. It would be reported later by the common IDEA test
framework and bypass our mute mechanics
2021-05-10 14:04:04 +03:00
Stanislav Erokhin
7ac599520e
Add first prototype of BindingContext implementation by FIR
...
Add ImportMemberIntention intention as a test.
In this commit all failed test were disabled, necessary fixes will be
added in the following commits
2021-05-10 14:04:03 +03:00
Stanislav Erokhin
6919f3dbb5
Move KotlinCacheServiceImpl to plugin-common.xml
...
This was done to prevent fir plugin from loading FE 1.0 services
2021-05-10 14:04:02 +03:00
Jinseong Jeon
bf85b110da
FIR DFA: remove updatedAliasDiff from PersistentFlow
...
It is no longer used after element-wise join (a5389b06 )
2021-05-10 12:16:04 +03:00
Mikhael Bogdanov
cd7841ceed
Generate type annotations on class type parameters bounds
...
#KT-13228
#KT-46539 Fixed
2021-05-10 12:12:21 +03:00
Mikhael Bogdanov
f574f89f78
Generate class annotation in AbstractAsmLikeInstructionListingTest
2021-05-10 12:12:20 +03:00
Mikhael Bogdanov
40eeee48b6
Extract generation of type parameters annotations and annotation on their bounds into utils
2021-05-10 12:12:19 +03:00
Mikhael Bogdanov
cbe3c66156
Generate function type parameter annotations and type annotations on their bounds into bytecode
...
Generate type parameter annotation by default for `-Xjvm-target 1.8` and above
#KT-46539
#KT-13228
#KT-46545 Fixed
2021-05-10 12:12:18 +03:00
Mikhael Bogdanov
209ec68591
Make copy for disabled ir tests
2021-05-10 12:12:16 +03:00
Mikhael Bogdanov
5ff4d648f4
Render generic signature in type parameters tests
2021-05-10 12:12:15 +03:00
Mikhael Bogdanov
6182228de8
Render all annotations in type parameters tests
2021-05-10 12:12:14 +03:00
Vladimir Dolzhenko
c98dba6aea
Do not set diagnostics callback if it is already set
...
Relates to #KT-37702
2021-05-10 09:59:16 +02:00
Vladimir Dolzhenko
cf5e6b242b
Wrap exception with file details
...
Relates to #KT-39776
2021-05-07 23:48:12 +02:00
Ilya Muradyan
e9af2849ef
Add Kotlin DeprecationLevel into the REPL completion
2021-05-07 19:56:21 +03:00
Mads Ager
6bc4e124fb
[JVM_IR] Guard against infinite recursion in JvmIrCodegenFactory.
...
Fixed KTIJ-11580.
2021-05-07 17:58:49 +02:00
n-p-s
d70b889004
Update declarations to be searchable by their JvmName annotation
...
Relates to #KT-23653
2021-05-07 17:43:26 +03:00
pyos
36a25353e9
JVM_IR: permit @NoArg if super constructor is already zero-argument
...
#KT-46537 Fixed
2021-05-07 16:22:30 +02:00
Mikhail Glukhikh
ac9e8f667d
Simplify code in Fir2IrConversionScope.returnTarget
2021-05-07 17:06:34 +03:00
Mikhail Glukhikh
05872fc6a8
Support captured types in ConeTypeCompatibilityChecker
2021-05-07 17:06:34 +03:00
Mikhail Glukhikh
df815a64cf
FirEqualityCompatibilityChecker: rename file
2021-05-07 17:06:34 +03:00
Mikhail Glukhikh
6a51ddf755
FirEqualityCompatibilityChecker: add exception wrapper
2021-05-07 17:06:34 +03:00
Andrei Klunnyi
b7eded6e48
KT-46146 no 'protected' for final classes
...
Intention to change final class constructor visibility to 'protected'
was erroneous. This commit removes it.
2021-05-07 12:47:40 +00:00
Andrei Klunnyi
e56a3b3c30
KT-46146 'protected' and 'private' only for sealed constructors
...
Prior to this commit we suggested two invalid intentions for sealed
class constructors: change visibility to 'public' and 'internal'.
^KT-46146 Fixed
2021-05-07 12:47:39 +00:00
Andrei Klunnyi
686368749a
KT-46146 'protected' is unavailable for primary constructors
...
Prior to this commit intention to change primary constructor visibility
to 'protected' was filtered out.
2021-05-07 12:47:38 +00:00
Alina Dolgikh
7388e60869
Add link to Kotlin 1.5 Event registration
...
As an experiment, we would like to try promotion in the Github repository.
2021-05-07 14:40:14 +02:00
Ilya Muradyan
042ac5555c
Merge pull request #4342 from JetBrains/rr/ileasile/completion-for-function-params
...
[REPL] Add completion for the call named parameters
2021-05-07 15:11:12 +03:00
Mikhail Glukhikh
27903b4cd6
Configuration fix: make fir2ir tests depend on 'dist'
2021-05-07 10:32:47 +03:00
Alexander Udalov
d306d8a90e
JVM IR: cast indy-SAM receiver type from KFunctionN to FunctionN
...
#KT-46512 Fixed
2021-05-07 00:53:31 +03:00
Ilya Kirillov
124bd559de
FIR IDE: fix failing AbstractOverrideImplementTest tests on Windows
...
Before the System.lineSeparator() was used for splitting KtFile.text into lines.
In IJ all lines has UNIX file endings, so it failed on Windows TC agent
2021-05-07 00:40:52 +03:00