Mikhail Glukhikh
fea224749b
FIR: introduce symbolProvider.getNestedClassifierScope to choose lazy/non-lazy
...
For some reason this breaks two old FE based tests with member type aliases.
It's not very interesting because member aliases aren't supported.
2019-12-16 10:50:52 +03:00
Mikhail Glukhikh
663d545d79
FIR: get rid of symbolProvider.getClassDeclaredMemberScope at all
2019-12-16 10:50:52 +03:00
Mikhail Glukhikh
af87a183c2
FIR: get rid of symbolProvider.getClassDeclaredMemberScope usages in compiler
2019-12-16 10:50:52 +03:00
Mikhail Glukhikh
f497231acd
FIR: try to use JavaSymbolProvider directly in lazy nested classifier scope
2019-12-16 10:50:52 +03:00
Sergey Rostov
48d60ed4ea
revert accidentally changed vcs.xml
2019-12-16 10:38:42 +03:00
Sergey Rostov
039090d2bf
gradle.kts importing tests: run gradle 6.0.1 only for that test
2019-12-16 10:31:12 +03:00
Sergey Rostov
1930ab7c38
gradle.kts importing: reduce bunch files
2019-12-16 10:31:11 +03:00
Sergey Rostov
c0690ff5f6
gradle.kts importing: move code to dedicated package
2019-12-16 10:31:11 +03:00
Sergey Rostov
6e3e65c490
gradle.kts importing: add support for included builds and fix sub projects
2019-12-16 10:31:11 +03:00
Sergey Rostov
fef193be63
gradle.kts: add tests for importing scripts configuration
2019-12-16 10:31:11 +03:00
Sergey Rostov
dcd67d79f4
gradle.kts: script models should be imported in ProjectData key, not in GradleSourceSetData
...
Or it will be fail if there is no source sets (see org.jetbrains.kotlin.idea.codeInsight.gradle.GradleKtsImportTest.testEmpty for reproduction)
2019-12-16 10:31:11 +03:00
Sergey Rostov
fd16078a34
gradle.kts: add clearCaches method for testing
2019-12-16 10:31:11 +03:00
Sergey Rostov
559b067f91
gradle.kts: move areSimilar to utils.kt to use in tests
2019-12-16 10:31:11 +03:00
Mikhail Glukhikh
249f72585d
Fix test data in FIR old FE diagnostics test
...
Probably broken by 13 Dec commits of Denis Zharkov
2019-12-16 10:27:05 +03:00
Igor Yakovlev
2639ed2c48
Fix invalid equality for UL methods
...
Potentially fixed #KT-34796
2019-12-15 23:42:31 +03:00
Anton Bannykh
d6fcde7316
JS_IR: fix typecheck corner case
...
Consider `fun <E : I> foo(a: Any?) = a as? E`, where I is an interface.
This check used to fail, because the `a == null` was missing, and
the `isInterface` stdlib method crashes if the first argument
is null. This change adds the null check.
Also this change prettifies the instance check in case of type parameter
left operand.
2019-12-15 17:36:24 +03:00
Anton Bannykh
9a971172c9
JS: fix object expression constructor delegation to secondary constructors with default arguments (KT-30517 fixed)
2019-12-15 15:21:23 +03:00
Victor Petukhov
419d414681
NI: Update FIR test data after 07269661b4
2019-12-14 17:52:57 +03:00
Georgy Bronnikov
92c2cfa968
JVM_IR: handle property references at class level
2019-12-13 20:44:09 +03:00
Vyacheslav Gerasimov
8d303af395
Build: Add build scan server url setting
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
724884513e
Build: Extract build cache setup to kotlin-build-gradle-plugin
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
68ce5dbd90
Build: Use property for disabling/enabling local build cache
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
bfcac5b091
Build: Update kotlin-build-gradle-plugin to 0.0.4
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
283933ace5
Build: Add localBuildCacheEnabled property
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
729b4d33cf
Build: Replace deprecated compile configuration with implementation in build script of buildSrc
2019-12-13 20:11:18 +03:00
Vyacheslav Gerasimov
85dcc65695
Build: Use kotlin-build-gradle-plugin in build script of buildSrc
2019-12-13 20:11:18 +03:00
Alexander Shustanov
c9cba34d67
KT-35454 Weird implementation of KtUltraLightFieldImpl.isEquivalentTo
2019-12-13 20:07:45 +03:00
Dmitry Savvinov
f45c11c6f2
Use constantSdkDependencyIfAny in getKeyForSdk as well
2019-12-13 19:11:02 +03:00
Dmitriy Dolovov
5b8be16f13
Kotlin/Native IDE plugin clean-up
...
- Re-organize classes
2019-12-13 15:52:25 +03:00
Dmitriy Dolovov
36ed29d4d5
Convert KotlinNativeMetaBinary from Java to Kotlin
2019-12-13 15:52:17 +03:00
Dmitriy Dolovov
511a4089ca
Kotlin/Native IDE plugin clean-up
...
- Drop KotlinNativeMetadataVersion in favor of KlibMetadataVersion
- Drop KotlinNativeProtoBasedClassDataFinder in favor of KlibMetadataClassDataFinder
2019-12-13 15:52:10 +03:00
Dmitriy Dolovov
992a702762
Minor: organized imports
2019-12-13 15:52:03 +03:00
Dmitriy Dolovov
deb4025987
Fix: Use more precise KLIB compatibility check (by metadata version)
...
Issue #KT-34811
2019-12-13 15:51:54 +03:00
Denis Zharkov
34e1ab4e7a
FIR: Leave single implementation of ConeInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
28f4d62ccf
FIR: Add different extension for FirSession.inferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
b33d0c2594
Minor. Reformat ConeInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
0baf1e8fa7
Minor. Get rid of UniversalConeInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
bbc9927bce
Minor. Get rid of DataFlowInferenceContext
2019-12-13 14:39:06 +03:00
Denis Zharkov
0064429339
Avoid using TypeSystemInferenceExtensionContextDelegate in FIR
...
It's only needed in old FE to avoid clashes when initializing DI
The main idea is gettind rid of intermediate interfaces because
each of them adds another intermediate DefaultImpls call
2019-12-13 14:39:06 +03:00
victor.petukhov
25fdbdfecb
NI: Update FIR test data
2019-12-13 11:49:32 +03:00
Yan Zhulanow
a19f8ffe6a
Revert "Debugger: Add IR-powered ranking tests"
...
This reverts commit ce21a559
Because of the erroneous behavior in 'BuilderFactoryForDuplicateSignatureDiagnostics.groupMembersDescriptorsBySignature', two functions with arguments of different inline class types are considered to have the same JVM signature.
Before the error wasn't reported, as classes didn't have proper source elements.
This issue has to be fixed before enabling ranking tests.
2019-12-13 12:23:24 +09:00
Victor Petukhov
1534e2b76d
NI: Actualize FIR test after 2d5a05466d
2019-12-13 00:17:37 +03:00
Victor Petukhov
07269661b4
NI: Allow to resolve to functions with SAM conversion and passing array without spread as vararg (with warning)
...
^KT-35224 Fixed
2019-12-12 23:46:16 +03:00
Simon Ogorodnik
fe875d628d
Revert "[FIR] Fix outputs for logs of modularized test"
...
This reverts commit ae15fa76
2019-12-12 21:23:27 +03:00
Simon Ogorodnik
60cc9fa6f5
Revert "[FIR] Fix outputs for logs of modularized test"
...
This reverts commit ae15fa76
2019-12-12 20:55:13 +03:00
victor.petukhov
71cb65c064
NI: Add flexible Nothing to trivial constraints to filter it
2019-12-12 18:45:11 +03:00
victor.petukhov
2d5a05466d
NI: Fix some unwanted exclusions constraints with remained corresponding optimization
2019-12-12 18:45:07 +03:00
Juan Chen
15f6beed57
Fix Compose extension points in compiler.xml
2019-12-12 18:30:54 +03:00
Mikhael Bogdanov
b95e7dfb6f
Don't mark super call to method from any as interface one
...
#KT-35426 Fixed
2019-12-12 15:29:53 +01:00
Igor Chevdar
df2adb060c
Bumped K/N version
2019-12-12 16:53:59 +03:00