Sergey Bogolepov
af3ff6c4d6
Revert "Revert "Remove unused protobuf from backend.native""
...
This reverts commit c4182c82
2021-03-19 15:24:44 +03:00
Sergey Bogolepov
bba82c0d60
Revert "Revert "Remove obsolete bc.frontend module""
...
This reverts commit e7a385f9
2021-03-19 15:24:43 +03:00
Sergey Bogolepov
30e9c645f8
Revert "Revert "Cleanup TargetManager.kt a little bit""
...
This reverts commit 3dd25e49
2021-03-19 15:24:42 +03:00
Sergey Bogolepov
1d8d76eb7f
Revert "Revert "Cleanup HostManager.kt a little bit""
...
This reverts commit 98b2c000
2021-03-19 15:24:41 +03:00
Roman Golyshev
184838ae35
FIR IDE: Fix import of properties; also fix bug in alreadyHasImport
2021-03-19 12:37:43 +03:00
Roman Golyshev
054d6ccdfb
FIR IDE: Refactor KotlinFirLookupElementFactory
2021-03-19 12:37:43 +03:00
Roman Golyshev
9db8bd8d38
FIR IDE: Refactor variables insertion handlers
2021-03-19 12:37:43 +03:00
Roman Golyshev
84386237a6
FIR IDE: Refactor classifiers insertion handlers
2021-03-19 12:37:42 +03:00
Roman Golyshev
fe921b98ce
FIR IDE: Refactor functions insertion handler
2021-03-19 12:37:42 +03:00
Roman Golyshev
43b829b1f0
Fix test data
...
We do not need to check the imports order in this particular test
2021-03-19 12:37:42 +03:00
Roman Golyshev
7b7ba717d0
FIR IDE: Add more correct importing of the callables
...
Now we use scopes to decide if the callable really needs to be inserted
2021-03-19 12:37:42 +03:00
Roman Golyshev
76ff106458
FIR: Add collecting top-level scopes of the file
...
It will be useful in the completion when we need to dicide if we
need to import FQN or not
2021-03-19 12:37:42 +03:00
Roman Golyshev
3427e0aebb
FIR IDE: Add extensions function completion from indices
...
The insertion handling test is not correct, we need to check file
imports before adding new ones
2021-03-19 12:37:41 +03:00
Roman Golyshev
8396e17c52
Improve test data (to avoid clash with stdlib)
2021-03-19 12:37:41 +03:00
Roman Golyshev
83a9b4fb87
FIR IDE: Only insert FqNames for non-extension non-members properties
...
This is not completely correct, will be fixed later
2021-03-19 12:37:41 +03:00
Roman Golyshev
bf52417268
Add test for synthetic java property completion to multi-file tests
2021-03-19 12:37:41 +03:00
Roman Golyshev
d955f8e0d3
FIR IDE: Add simple shortening completion handler for properties
2021-03-19 12:37:41 +03:00
Roman Golyshev
8392b36964
FIR IDE: Add more accurate shortening for properties
2021-03-19 12:37:41 +03:00
Roman Golyshev
03a1c6fcca
Add multi-file completion handler tests for FIR code completion
...
This is a temporary (and dirty) solution to start using those tests as
fast as possible. We certainly need to refactor them so they can be
generated from the testData
2021-03-19 12:37:40 +03:00
Roman Golyshev
73e623b5ac
Generate multi-file completion tests for FIR completion
...
Also remove `MultiFilePrimitiveJvmBasicCompletionTestGenerated` tests
2021-03-19 12:37:40 +03:00
Roman Golyshev
abeff5d5c5
Enable passing tests
2021-03-19 12:37:40 +03:00
Roman Golyshev
d6d3d3a6ad
FIR IDE: Add completion for top level functions and properties
2021-03-19 12:37:40 +03:00
Roman Golyshev
62389bad0b
FIR IDE: Add more useful Lookup Objects
...
Main purpose of those lookup objects for now is to allow same lookup
elements to merge
2021-03-19 12:37:40 +03:00
Roman Golyshev
ab191925cb
FIR IDE: Update test data for completion handlers test
2021-03-19 12:37:39 +03:00
Roman Golyshev
9896512eda
FIR IDE: Collect scopes information in reanalyze
...
It is needed for the completion, so after the changes in method bodies
all contexts are correctly collected
2021-03-19 12:37:39 +03:00
Roman Golyshev
f641466f70
FIR IDE: Fix searching for the closest function to re-resolve
...
If the function is local, there would be errors related to its
unresolved body and receiver type
2021-03-19 12:37:39 +03:00
Roman Golyshev
1d64c0789f
FIR IDE: Add implementation of classifiers completion from indices
2021-03-19 12:37:38 +03:00
Alexander Shabalin
5b1c30c198
Extract initializing singleton marker
...
* Extract kInitializingSingleton marker
* Extract isNullOrMarker helper function
2021-03-19 08:19:10 +00:00
Vasily Levchenko
b3ae30fdea
[llvm][context util] make error more readable
2021-03-19 08:04:00 +00:00
Sergey Bogolepov
e320f7efc3
Add libffi buildscript for Apple Silicon
2021-03-19 07:21:39 +00:00
Svyatoslav Scherbina
a9d0409f2e
Don't use Function.reflect() in kotlin-native/Interop on JVM
...
Use inline functions and typeOf<T>() instead
2021-03-19 06:53:09 +00:00
Alexander Likhachev
008e2636b7
[Gradle] Prevent early capturing of project build dir in KotlinCompile
...
#KT-45301 Fixed
2021-03-18 19:51:08 +00:00
Ilya Gorbunov
42648d55a0
kotlin-test: make assertIs<T> returning value cast to T KT-45296
2021-03-18 21:57:16 +03:00
Ilya Goncharov
2fd8620551
[Gradle, JS] Support custom display name in npm versions generator
...
^KT-42921 fixed
2021-03-18 21:32:15 +03:00
Ilya Goncharov
a291895ebe
[Gradle, JS] Add compatibility with webpack 4
...
^KT-42921 fixed
2021-03-18 21:32:14 +03:00
Ilya Goncharov
a1a01a1428
[Gradle, JS] Use compatible node version
...
^KT-42921 fixed
2021-03-18 21:32:12 +03:00
Ilya Goncharov
b2a2616c10
[Gradle, JS] Fix of using format-util
...
^KT-42921 fixed
2021-03-18 21:32:11 +03:00
Ilya Goncharov
965426bbd9
[Gradle, JS] Webpack serve for webpack-dev-server
...
^KT-42921 fixed
2021-03-18 21:32:10 +03:00
Ilya Goncharov
5827ed3f05
[Gradle, JS] Update versions with karma-webpack 5.0.0
...
^KT-42921 fixed
2021-03-18 21:32:08 +03:00
Ilya Goncharov
1b8c74337e
[Gradle, JS] Adopt Gradle plugin to webpack 5
...
^KT-42921 fixed
2021-03-18 21:32:07 +03:00
Ilya Goncharov
a06feaf819
Add possibility to hardcode version
...
^KT-42921 fixed
2021-03-18 21:32:05 +03:00
Ilya Goncharov
88abb3d6c9
[JS IR] Fix creating of classes extended from nested one
...
[JS IR] Extract getClassRef method
^KT-44950 fixed
2021-03-18 21:14:00 +03:00
Ilya Goncharov
a61312120b
[Gradle, JS] WA for tests with multiple binaries
2021-03-18 20:07:48 +03:00
Ilya Goncharov
8ffe70cb4d
[Gradle, JS] Use one folder for sync tasks
2021-03-18 20:07:47 +03:00
Dmitry Petrov
17da240910
JVM_IR KT-45195 generate non-static annotation members as ACC_ABSTRACT
2021-03-18 19:41:24 +03:00
Dmitry Petrov
2fd69a5718
Add bytecode listing tests for 'allopen' plugin with JVM_IR
2021-03-18 19:41:23 +03:00
Victor Turansky
e4d98d4e39
Gradle 7.0 support. com.gradle.plugin-publish 0.12.0 -> 0.13.0
...
[With Gradle 7+ support](https://plugins.gradle.org/plugin/com.gradle.plugin-publish/0.13.0 )
2021-03-18 19:11:26 +03:00
Steven Schäfer
d0424465b8
JVM IR: Resolve fake overrides when calculating return types (KT-44867)
2021-03-18 16:02:35 +01:00
Pavel Punegov
cae95b1ba0
[native] Fix kotlin.native.home properties order.
2021-03-18 14:41:03 +00:00
Roman Artemev
44d03bc727
[Psi2Ir] Fix generation of property references for synthetic java props
...
- Declare it on use-site
- Fix export checker for that case
- Fix KT-45297
2021-03-18 16:50:31 +03:00