Ilya Kirillov
aa70c952eb
FIR IDE: fix SOE on opening project
...
Kotlin library may contain cycles which causes SOE in FirModuleInfoBasedModuleData.dependencies
2021-05-17 20:56:57 +02:00
Ilya Chernikov
d365d7c784
Fix IR compilation for empty script
...
#KT-46646 fixed
2021-05-17 20:15:14 +03:00
Dmitry Petrov
3a0e3798ec
JVM_IR KT-46597 fix receiver type for inlined callable reference
...
Receiver type is used by SyntheticAccessorLowering to determine class in
which a synthetic accessor should be generated.
2021-05-17 20:12:58 +03:00
Konstantin Tskhovrebov
80ce3a5cf8
Delete umbrella Apple framework tasks and register concrete tasks.
...
#KT-46680
2021-05-17 19:45:02 +03:00
Ilya Muradyan
55a9f1a910
[Scripting] Make AetherResolveSession internal and do related refactorings
2021-05-17 18:22:29 +03:00
Ilya Muradyan
a0cc88ab5a
[Scripting] Add transitive support for Maven Resolver
2021-05-17 18:22:28 +03:00
Ilya Muradyan
b77a822822
[Scripting] Add authorization for Maven Resolver
2021-05-17 18:22:26 +03:00
Ilya Muradyan
78c65ab802
[Scripting] Bump up Maven resolver JARs version
2021-05-17 18:22:25 +03:00
Yahor Berdnikau
800e382ba9
Warn on using 'jdkHome' option in Gradle builds.
...
User should instead use KotlinJavaToolchain that will take care of
tracking major java version and provide nicer API.
Gradle will still pass jdkHome value to the compiler, but it should
be changed in Kotlin 1.6 release.
^KT-45611 Fixed
2021-05-17 16:57:01 +03:00
Ilya Goncharov
74d1812461
[JS IR] Review remarks
...
- Move origin to common place
- Add comments and todo about solution
- Remove MODULE directive from tests
- Add test with in-place using of js function
2021-05-17 16:51:22 +03:00
Ilya Goncharov
507516e44d
[JS IR] Add tests with reified generic and with KType on DCE to leave class
2021-05-17 16:51:20 +03:00
Ilya Goncharov
f0b3ee0e35
[JS IR] Add test with class reference using from js
2021-05-17 16:51:19 +03:00
Ilya Goncharov
137532bfa6
[JS IR] Use separate origin for class reference to preserve constructors
2021-05-17 16:51:17 +03:00
Leonid Startsev
796d2fd210
Respect explicit api mode state when generating actual declarations
...
#KT-44067 Fixed
2021-05-17 12:40:49 +00:00
Leonid Startsev
8cd704b6db
Exclude public API symbols in explicit mode from unused symbol inspection
...
#KT-41659 Fixed
2021-05-17 12:40:48 +00:00
Leonid Startsev
19dece01f6
Add support of explicit API mode to 'Make public' intention
...
#KT-41902 Fixed
Do not check languageVersionSettings for fake elements
because this leads to an exception
2021-05-17 12:40:47 +00:00
Igor Yakovlev
d34c23914a
[FIR IDE] Fix invalid designation collecting for local classes
2021-05-14 23:06:04 +03:00
Igor Yakovlev
207bad5d5f
[FIR IDE] Implementation of KtUserType resolve
2021-05-14 23:06:03 +03:00
Igor Yakovlev
a5f701bac7
[FIR IDE] OnAir resolve for annotations with file site
2021-05-14 23:06:02 +03:00
Igor Yakovlev
dedcaf1eab
[FIR IDE] Fixed annotation application completion
2021-05-14 23:06:00 +03:00
Igor Yakovlev
3275165619
[FIR IDE] Fix resolve for incomplete or invalid references
2021-05-14 23:05:59 +03:00
Igor Yakovlev
2bfacaaed2
[FIR IDE] Rename and move refactorings, codereview refactorings
2021-05-14 23:05:58 +03:00
Igor Yakovlev
c5372be267
[FIR IDE] Move and rename RawFirFragmentForLazyBodiesBuilder into Fir Ide module
2021-05-14 23:05:57 +03:00
Igor Yakovlev
0569f810cf
[FIR IDE] Add OnAir resolve tests
2021-05-14 23:05:55 +03:00
Igor Yakovlev
633e03b710
[FIR IDE] LowLevel api refactoring
2021-05-14 23:05:54 +03:00
Igor Yakovlev
445f13d1bf
[FIR IDE] Fix invalid body lazy resolve
2021-05-14 23:05:53 +03:00
Igor Yakovlev
cfc0bfd64a
[FIR IDE] Refactoring of designated IDE transformers
2021-05-14 23:05:52 +03:00
Igor Yakovlev
384b2ad048
[FIR IDE] Rename refactoring and speed improvements
2021-05-14 23:05:50 +03:00
Igor Yakovlev
966743c704
[FIR IDE] Enable passing completion tests
2021-05-14 23:05:49 +03:00
Igor Yakovlev
37ccab4e23
[FIR] Fixed supertypes resolve for invalid code with class without ClassId
2021-05-14 23:05:48 +03:00
Igor Yakovlev
2e7eedd3f2
[FIR IDE] Correct in-body supertype resolve of fake nodes
2021-05-14 23:05:46 +03:00
Igor Yakovlev
959ff50fa7
[FIR IDE] Collect tower contexts for local declarations
2021-05-14 23:05:45 +03:00
Igor Yakovlev
ae63ad0b6d
[FIR] Fix annotations invalid references diagnostics
2021-05-14 23:05:44 +03:00
Igor Yakovlev
261098a122
[FIR IDE] Implement on-air resolve of non-local declarations
2021-05-14 23:05:42 +03:00
Igor Yakovlev
779a06e86f
[FIR IDE] Add types, supertypes and status lazy designated transformers
2021-05-14 23:05:41 +03:00
Igor Yakovlev
95acb6121b
[FIR IDE] Fixed property and parameter creation/replacement and fixed invalid source on annotation type
2021-05-14 23:05:40 +03:00
Igor Yakovlev
38242bee75
[FIR] Fixed invalid real psi source fir fir annotation name reference
2021-05-14 23:05:38 +03:00
Igor Yakovlev
aaefe94763
[FIR IDE] Refactor low level resolve state for completion
...
Rename refactorings
Remove redundant methods and implementations
Increase code-logic locality
Removed redundant entities
2021-05-14 23:05:37 +03:00
Alexander Udalov
aa13936cb2
Move GenerateProtoBuf to separate source set with no dependencies
...
Also move GenerateProtoBufCompare to a new source set with a dependency
only on build-common.
#KTI-79 Fixed
2021-05-14 21:08:56 +02:00
Ilya Kirillov
8b722cfc47
Separate uast-idea modules into fir and fe10 implementations
2021-05-14 20:57:20 +03:00
Svyatoslav Scherbina
ba6c3c7fe0
Add workaround for KT-35001
...
Just suppress the warning.
The accident it describes is generally harmless and totally expected.
2021-05-14 20:05:30 +03:00
Svyatoslav Scherbina
48a684c024
Native: implement custom handling for LLVM diagnostics
...
Apply it when linking LLVM modules, because otherwise LLVM would
terminate the entire compiler process on link errors, which isn't ok,
e.g. when embedding the compiler into Gradle daemon (see KT-46358).
2021-05-14 20:05:29 +03:00
Alexander Udalov
ee6586fe4f
Fix accidental usage of ASM from jdk.internal
...
#KT-46402 Fixed
2021-05-14 15:23:08 +02:00
Dmitry Petrov
d1322280dd
JVM_IR KT-46578 resolve fake overrides for fields
2021-05-14 16:20:22 +03:00
Mikhail Glukhikh
a255f44d6e
FIR2IR KT-46578 add overridden properties generation
2021-05-14 16:20:20 +03:00
Dmitry Petrov
53c1de172f
IR KT-46578 add IrProperty#overriddenSymbols
2021-05-14 16:20:18 +03:00
Andrey Zinovyev
dc9d5cdf35
[FIR] Handle of special getters when there is a kotlin super type
...
Special getter names (like Collection.size()) can be used only in Java
classes with all-java super-types
Because if there is a kotlin class (not interface) in
the middle, we 'materialize' special getters to properties.
2021-05-14 15:38:09 +03:00
Dmitriy Novozhilov
7066a5b3dc
[FIR-IDE] Questionable testdata update
2021-05-14 14:30:46 +03:00
Dmitriy Novozhilov
c652a9e7b1
[FIR-IDE] Use correct session in member scope provider
2021-05-14 14:30:45 +03:00
Dmitriy Novozhilov
194252e5a1
[FIR-IDE] Properly setup moduleDataProvider for ide library session
2021-05-14 14:30:44 +03:00