Sergey Bogolepov
2230aed4e2
Fix KT-49212
2021-10-18 07:19:10 +00:00
Tianyu Geng
825be3588a
FIR IDE: tolerate KtFirBackingFieldSymbol when getting overridden symbols
2021-10-18 08:29:22 +02:00
Abduqodiri Qurbonzoda
a3755a8e94
@UseExperimental -> @OptIn in compiler testData
2021-10-17 21:14:37 +00:00
Abduqodiri Qurbonzoda
f0a75e7843
Advance deprecation level of Experimental and UseExperimental annotations to ERROR
2021-10-17 21:14:36 +00:00
Ilya Kirillov
6b453963ef
Analysis API: fix test compilation
2021-10-16 14:49:42 +02:00
Tianyu Geng
ba359fb296
FIR IDE: render captured type
2021-10-16 14:16:26 +02:00
Tianyu Geng
8b44a4685f
FIR IDE: add API to get super types of a KtType
2021-10-16 14:16:25 +02:00
Tianyu Geng
09d16ce849
FIR: minor refactoring TypeUtils
2021-10-16 14:16:25 +02:00
Tianyu Geng
39939c7213
FIR IDE: add helper checking if a type is flexbily nullable
2021-10-16 14:16:24 +02:00
Tianyu Geng
68e70769c8
FIR IDE: return error type for expressions if needed
...
It seems unnatural to filter out error types, given that KtType does
have a way to represent unresolved types.
2021-10-16 14:16:24 +02:00
Tianyu Geng
80b3e2eb69
FIR IDE: move helpers for HasCommonSubtypeTestGenerated
2021-10-16 14:16:23 +02:00
Jinseong Jeon
26673d2b08
FIR IDE: find source of deserialized enum entry
2021-10-15 19:45:05 +00:00
Jinseong Jeon
8023e7fb02
FIR IDE: add a test for resolution of @Retention value
2021-10-15 19:45:04 +00:00
Anton Bannykh
283e37c741
[JS IR] fix warnings
2021-10-15 20:14:54 +03:00
Anton Bannykh
c2f7ed2fff
[JS IR] added a directive to skip IC checks in IR
2021-10-15 20:14:53 +03:00
Anton Bannykh
94ed6a1dbd
[JS IR] bring back old ir2js to work alongside with the new one
...
Should be removed when we're sure the new one is OK
2021-10-15 20:14:53 +03:00
Anton Bannykh
1d42b6cb3f
[JS IR] make InnerClassesLowering.kt work with abscent bodies
2021-10-15 20:14:52 +03:00
Anton Bannykh
546ce501cb
[JS IR] run IC box tests
2021-10-15 20:14:51 +03:00
Anton Bannykh
b1b88a0d11
[JS IR] JS AST serialization
2021-10-15 20:14:50 +03:00
Anton Bannykh
95ab5e1b7e
[JS IR] generate JS separately for each file and link at the end
...
Name clashes are handled as a post-processing step
2021-10-15 20:14:50 +03:00
Anton Bannykh
936383254a
[JS IR] explicitly mark JsName's temporary or not
2021-10-15 20:14:49 +03:00
Anton Bannykh
7e7c84fcfb
[JS IR] move fragment generation closer to the beginning
2021-10-15 20:14:48 +03:00
Anton Bannykh
b1b263615c
[JS IR] handle exports per-file
2021-10-15 20:14:47 +03:00
Anton Bannykh
aec743d7a6
[JS IR] handle tests per-file
2021-10-15 20:14:47 +03:00
Anton Bannykh
9f2762cfa6
[JS IR] handle main function per-file
2021-10-15 20:14:46 +03:00
Anton Bannykh
1af1d13cf3
[JS IR] split resulting code into fragments
2021-10-15 20:14:45 +03:00
Anton Bannykh
d595264cc8
[JS IR] move JsGenerationContext towards it's use
2021-10-15 20:14:43 +03:00
Mads Ager
e9c9d5731e
[JVM] Port Stepping and LocalVariable tests to new test infra.
...
This is in preparation for enabling the tests for FIR which will
be easier to do when the tests are on the new infrastructure.
2021-10-15 20:03:54 +03:00
Igor Chevdar
f1c1094393
[K/N][optmz] Fix for https://youtrack.jetbrains.com/issue/KT-49234
2021-10-15 14:08:17 +00:00
Mark Punzalan
167dc81d3b
FIR/Analysis API: Get parameter name from function type notation or
...
`@ParameterName` annotation, which is also now added during type
resolution.
2021-10-15 16:19:00 +03:00
Yahor Berdnikau
afb68d15d6
Migrate DeterministicBuildIT tests into new test dsl.
...
^KT-45745 In Progress
2021-10-15 15:04:24 +02:00
Sergej Jaskiewicz
8b2410733f
[JS IR] Improve the test for exporting protected members
2021-10-15 12:52:11 +00:00
Tianyu Geng
c10879be43
FIR IDE: get type of unresovled super
...
FIR does not provide any type for unresolved super so we manually
synthesize such types for completion to work.
2021-10-15 14:12:43 +02:00
Yahor Berdnikau
a487e91124
Migrate BuildCacheRelocationIT test to new test DSL.
...
^KT-45745 In Progress
2021-10-15 15:11:23 +03:00
Yahor Berdnikau
031c5f47d9
Populate default settings even when 'build.gradle' file is missing.
...
^KT-45745 In Progress
2021-10-15 15:11:22 +03:00
Jinseong Jeon
c669749915
FIR LC: adapt to split of property annotations during FIR building
...
As of 7243d308 , property annotations are split according to use-site,
and thus, for property accessors and setter parameter, FIR LC needs
to look up accessors and setter parameter with the target use-site.
2021-10-15 13:50:32 +02:00
Svyatoslav Kuzmich
0f66f85cf9
[Wasm] Support main function
2021-10-15 13:58:55 +03:00
Dmitry Petrov
af18b10da9
JVM_IR KT-49203 generate stubs for not found classes
2021-10-15 12:15:49 +03:00
Ilya Goncharov
4cca78f8d8
[Gradle, JS] Igore if kotlin_test not found
2021-10-15 11:37:42 +03:00
Viacheslav Kormushkin
86c6ca7f5f
[Gradle][Cocoapods] Private Pods with SSH Git Url not allowed in custom specRepos
...
#KT-48887
Merge-request: KT-MR-4770
2021-10-15 06:36:22 +00:00
Dmitriy Novozhilov
2676de397c
Advance bootstrap to 1.6.20-dev-3905
2021-10-15 08:58:16 +03:00
Alexander Likhachev
754595e496
[Gradle, JS] Fix NPM resolution synchronization issues
...
#KT-49201 Fixed
2021-10-15 00:32:40 +00:00
Mikhail Glukhikh
f4067f05a2
FIR: forbid java.lang.String(String) constructor in JvmMappedScope
...
#KT-49135 Fixed
2021-10-15 01:24:51 +03:00
Mikhail Glukhikh
09bc729b0e
FirDefaultParametersResolver: process imported from objects properly
...
#KT-49083 Fixed
2021-10-15 01:24:51 +03:00
Mikhail Glukhikh
c5a4a5de42
Make FirArrayOfCallTransformer recursive #KT-49076 Fixed
2021-10-15 01:24:49 +03:00
Mikhail Glukhikh
ad3502a952
Don't refer self function in Fir2IrLazySimpleFunction.initialSignature
...
This commit prevents stack overflow in MethodSignatureMapper
#KT-49222 Fixed
2021-10-15 01:24:49 +03:00
Mikhail Glukhikh
31db76da56
FIR: fix false positives of INNER_CLASS_OF_GENERIC_THROWABLE_SUBCLASS
...
#KT-49129 Fixed
2021-10-15 01:24:47 +03:00
Tianyu Geng
e3b92fe5f3
FIR IDE: move helper to shorten refs to IDE
2021-10-15 00:43:20 +03:00
Tianyu Geng
3877dc8cc3
FIR IDE: tolerate comma in when conditions
...
For invalid code like the following,
```
when {
true, false -> {}
}
```
`false` does not have a corresponding elements on the FIR side and hence
the containing `FirWhenBranch` is returned by `getOrBuildFir`. This
change makes the analysis API bail out for such cases.
2021-10-14 20:50:50 +02:00
Irene Dea
78ee6b2a09
Extend CandidateInterceptor to intercept ResolvedCallAtom candidate
2021-10-14 18:32:03 +03:00