Commit Graph

91618 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 54fb4d9b70 Native: make forward declarations expect in metadata compilations
If we are compiling metadata, make synthetic forward declarations
`expect`, because otherwise `getFirstClassifierDiscriminateHeaders`
would prefer it over a "real" `expect` declaration from a commonized
interop library, which would ruin the whole idea of using synthetic
forward declarations only when no proper definitions are found.

^KT-51377 Fixed
2022-03-11 15:09:38 +00:00
Yahor Berdnikau 76fc4328d1 Migrate KotlinGradlePluginIT to new test dsl
Moved some tests to another test suites

^KT-45745 In Progress
2022-03-11 16:27:09 +03:00
Yahor Berdnikau f11ae83a3d Add method to include other project as included build
^KT-45745 In Progress
2022-03-11 16:27:09 +03:00
Yahor Berdnikau ca76c00b6c Also provide BuildResult in assert block
^KT-45745 In Progress
2022-03-11 16:27:08 +03:00
Yahor Berdnikau 8844f81a92 Move PublishingIT tests to use JVM tag
^KT-45745 In Progress
2022-03-11 16:27:08 +03:00
Yahor Berdnikau 8ef0bbb279 Rename KpmCompilerPluginIT
Make name of test suite to be considered as MPP test.

^KT-45745 In Progress
2022-03-11 16:27:07 +03:00
Yahor Berdnikau 4c2c7d9e5e Rename VariantAwareDependenciesIT
Make name of test suite to be considered as MPP test.

^KT-45745 In Progress
2022-03-11 16:27:06 +03:00
Jinseong Jeon 46707b0426 AA: test evaluation mode with same test inputs 2022-03-11 13:51:16 +01:00
Jinseong Jeon a7fcbfb717 AA: move logic to evaluate constant property initializer
so as to handle composite expressions w/ constant property
2022-03-11 13:51:16 +01:00
Jinseong Jeon 606033e1e6 AA: introduce KtConstantEvaluationMode 2022-03-11 13:51:15 +01:00
Jinseong Jeon ee23a52e54 AA: avoid conversions to KtInitializerValue in constant evaluator 2022-03-11 13:51:15 +01:00
Jinseong Jeon 1f93630a9c AA: evaluate constant property initializers 2022-03-11 13:51:14 +01:00
Jinseong Jeon 7ec7cc47a9 AA: ignore evaluating named reference (to avoid exceptions) 2022-03-11 13:51:14 +01:00
Jinseong Jeon e36bf55807 AA: avoid NPE while evaluating operations with non-numbers 2022-03-11 13:51:13 +01:00
Dmitriy Novozhilov 6f64aedaf0 [FIR] Fix FindReferencePositioningStrategy for light tree
There was a problem which causes to lookup for assign token inside
  functions from arguments of call
2022-03-11 15:36:05 +03:00
Dmitriy Novozhilov ade2307345 [FIR] Fix exponential analysis of augmented array access calls
^KT-50861 Fixed
2022-03-11 15:36:05 +03:00
wrongwrong c4735f9f29 Add tests for KFunction involving value classes
See KT-31141.
2022-03-10 23:28:40 +01:00
Mikhail Glukhikh c8453ec8b4 FIR: report ambiguity-like errors in type resolve 2022-03-10 20:42:42 +00:00
Mikhail Glukhikh f073e86c93 Update FIR Analysis API test data 2022-03-10 20:42:42 +00:00
Mikhail Glukhikh 59a1c68081 FIR LL: add predicate based provider to library resolvable session 2022-03-10 20:42:42 +00:00
Mikhail Glukhikh 34998473f5 FIR: Move deprecation resolve earlier 2022-03-10 20:42:41 +00:00
Mikhail Glukhikh 3505b285f7 FirLazyDeclarationResolver: drop skipPhaseInLazyResolve 2022-03-10 20:42:41 +00:00
Mikhail Glukhikh 30fa0230ec FIR: rename ANNOTATION_FOR_PLUGINS into COMPILER_REQUIRED_ANNOTATIONS 2022-03-10 20:42:40 +00:00
Mikhail Glukhikh f32cdef760 FirCompanionGenerationProcessor: optimize a bit 2022-03-10 20:42:40 +00:00
Mikhail Glukhikh 9aaf7b7d24 FIR: drop pluginPhase special parameter 2022-03-10 20:42:40 +00:00
Simon Ogorodnik d054976389 FIR. Add visibility/deprecation filtering to getFirstClassifierOrNull 2022-03-10 20:42:39 +00:00
Simon Ogorodnik 4ba5a55626 FIR. Add visibility/deprecation filtering to type resolve 2022-03-10 20:42:39 +00:00
Simon Ogorodnik f5b49e48ad FIR. Remove visibility filtering from importing scopes 2022-03-10 20:42:38 +00:00
Simon Ogorodnik ec3e2f7b99 FIR. Shadow classifiers from super-type scopes 2022-03-10 20:42:38 +00:00
Simon Ogorodnik 5ea1c246d7 FIR. Get rid of kotlin.Throws prioritization hack 2022-03-10 20:42:38 +00:00
Pavel Kirpichenkov 9162faaf39 [MPP] Fix incorrect reuse of type argument commonizer
If the same NullableSingleInvocationCommonizer is reused for any reason,
it will store next inputs alongside previous, which is totally not
expected

^KT-51528 Fixed
2022-03-10 17:54:19 +03:00
Pavel Kunyavskiy 42a2ce1610 [K/N] Fix currentFrame in smaller scope, to avoid gc while having incorrect shadow stack 2022-03-10 13:22:04 +00:00
Mikhail Glukhikh 779aa75855 Make FE1.0/FIR OptIn override message more clear 2022-03-10 09:09:51 +00:00
Mikhail Glukhikh d823020c07 Make FIR/FE1.0 report similar OptIn messages 2022-03-10 09:09:50 +00:00
Mikhail Glukhikh b42c236fb3 Replace blank messages in OptIn diagnostics #KT-51358 Fixed 2022-03-10 09:09:50 +00:00
Mikhail Glukhikh 4178c8156a Fix NPE in KtSourceElement.elementType #KT-44152 Fixed 2022-03-10 09:01:58 +00:00
Mikhail Glukhikh 8c7a8edb75 Minor: add diag.txt file for label clashes diagnostic tests 2022-03-09 15:19:28 +00:00
Mikhail Glukhikh d30536addc Minor: explicitly use LinkedHashSet in LabelResolver 2022-03-09 15:19:27 +00:00
Mikhail Glukhikh 14eec6cfc0 FE 1.0: implement typed this label resolve warning for KT-51433
#KT-51433 Fixed
2022-03-09 15:19:27 +00:00
Mikhail Glukhikh b5e2c492c6 FE 1.0: implement initial label resolve warning for KT-51433 2022-03-09 15:19:26 +00:00
Mikhail Glukhikh 31b234a261 Code cleanup: LabelResolver 2022-03-09 15:19:26 +00:00
Alexander Udalov 1e26888dd9 Psi2ir: fix parameter indices when generating extension invoke call
Incorrect `valueParameter` was passed to `generateValueArgument`, which
resulted in incorrect type being considered for generating suspend
conversion.

 #KT-50949 Fixed
2022-03-09 15:19:38 +01:00
sebastian.sellmair c2ab23ed70 kotlin-tooling-core: Update api reference 2022-03-09 13:17:08 +00:00
sebastian.sellmair 6d87fbddf4 kotlin-tooling-core: Rename singleClosure to linearClosure 2022-03-09 13:17:07 +00:00
sebastian.sellmair 6a96b6ec3f kotlin-tooling-core: Setup binary compatibility tests 2022-03-09 13:17:07 +00:00
sebastian.sellmair 93e04c0b33 kotlin-tooling-core: Implement KotlinToolingVersion API 2022-03-09 13:17:06 +00:00
sebastian.sellmair 14046b81ff Replace transitiveClosure (commonizer-api) with closure (tooling-core) 2022-03-09 13:17:06 +00:00
sebastian.sellmair 530a3bb6ea kotlin-tooling-core: Implement closure util 2022-03-09 13:17:05 +00:00
sebastian.sellmair fe45214d23 Create new kotlin-tooling-core module 2022-03-09 13:17:05 +00:00
dependabot[bot] 872bda01e0 Bump node-fetch in /kotlin-native/tools/performance-server
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-09 14:30:08 +03:00