aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/signatures
AgeCommit message (Collapse)Author
2023-10-25[K2] Reorganize project model for MPP (#3236)Vadim Mishenev
* Reorganize project model for MPP We map Dokka's source set directly to a source module of Analysis API inside one Analysis Standalone session. Analysis API session is created in src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/plugin/KotlinAnalysis.kt (see fun createAnalysisSession) Before the PR, one Dokka's source set corresponded to one Standalone API session with one source module that has source roots from dependent source sets. * Add 'caffeine' dependency from Analysis API * Fix sample provider * Fix tests * Enable tests and update the version of Analysis API. The PR allows the enabling of some tests annotated with OnlyDescriptorsMPP. Also, tests with OnlyDescriptorsMPP that have unresolved common symbols are fixed by the new version of Analysis API.
2023-10-24[K2] Enable Java tests for symbols (#3203)Vadim Mishenev
2023-10-05Register Kotlin stdlib classpath in every unit test (#3183)Vadim Mishenev
Due to the recent changes in how Analysis API handles builtins, the update to the fresh version of Analysis API requires registering Kotlin stdlib in every testsuite.
2023-08-31Update copyright (#3149)Ignat Beresnev
* Add the default copyright profile and enable IDEA project settings * Add the license notice file
2023-08-30Migrate to JUnit 5 and unify used test API (#3138)Ignat Beresnev
2023-08-28 Support Dokka K2 analysis (#3094)Vadim Mishenev
Dokka has its own documentable model to represent analyzed code. The analysis is performed by a compiler frontend. In K1 the compiler frontend has descriptors that use the underlying Binding Context (global shared stateful structure). Dokka just maps descriptors to Documentable by DefaultDescriptorToDocumentableTranslator. K2 compiler has FIR tree, which means “Frontend Intermediate Representation”, instead of Binding Context. But we do not use FIR in Dokka directly, since it is too low-level for analysis. The Kotlin compiler provides high-level Analysis API for this case. The API is used by KSP too. Analysis API represent elements of FIR (declarations, parameters and so on) as Symbols. For more details see KtSymbolByFirBuilder, KtSymbol. For Dokka symbol is the replacement of descriptor in K2. Also, to set up the environment of project analysis in K1 we use idea dependencies (or copy-past from there). In K2 for these aims, there is a Standalone mode for Analysis API.
2023-07-05Decompose Kotlin/Java analysis (#3034)Ignat Beresnev
* Extract analysis into separate modules
2023-07-03Enhance typealias presentation (#3053)Vadim Mishenev
2023-06-30Generate dedicated pages for typealiases (#3051)Vadim Mishenev
2023-04-07Move the `Properties` block to be above `Functions` (#2908)Ignat Beresnev
2023-02-24Reorganize tabs for Classlike (#2764)Vadim Mishenev
2023-01-12Default Java constructor (#2795)Andrey Tyrin
2022-10-31Add constructor keyword (#2691)Andrey Tyrin
2022-09-21Wrap long signatures dynamically based on client width (#2659)Ignat Beresnev
2022-08-03Fix spelling error 'depenent' (#2594)Felix Dombek
Co-authored-by: Felix Dombek <Felix.Dombek@tomtom.com>
2022-07-27Disable copy button for signatures (#2577)Ignat Beresnev
* Disable copy button for signatures
2022-06-19Fix incorrectly labeling java properties as val/var (#2540)Ignat Beresnev
Fixes #2539
2022-06-17Handle more corner cases for inherited accessors (#2532)Ignat Beresnev
2022-06-09Make `dokka-analysis` dependency compileOnly in base plugin (#2521)Vadim Mishenev
2022-06-08Support definitely non-nullable types (#2520)Vadim Mishenev
* Support definitely non-nullable types [Definitely non-nullable types](https://github.com/Kotlin/KEEP/blob/c72601cf35c1e95a541bb4b230edb474a6d1d1a8/proposals/definitely-non-nullable-types.md) are enabled since Kotlin 1.7
2022-05-16Don't expose enum constructor arguments to documentations (#2497)ebraminio
* Don't expose enum constructor arguments to documentation Enum constructor arguments is mostly internal detail of enums that isn't supposed to be exposed to clients of some library so let's don't put it in the generated documentations result.
2022-04-29Enable warnings as errors and fix all warnings (#2451)Ignat Beresnev
* Enable warnings as errors and fix all warnings * Enable skip-metadata-version-check compiler setting
2022-04-29Fix arg name inside functional type (#2478)Vadim Mishenev
2022-04-28Make a default value dependent on source set (#2449)Vadim Mishenev
* Make a default value dependent on source set * Get a default value from an expect source set * Fix default value for expect properties * Deprecate `DefaultValue.value` * Add test * Refactor * Reformat
2022-04-27Fix empty parentheses for no-arg enum entry (#2470)Ignat Beresnev
* Fix empty parentheses for no-arg enum entry Fixes #2355 * Move parentheses punctuation inside `list` call * Revert formatting * Correct expected ordering of enum entries in tests
2022-04-19Update Jsoup to 1.14.3 (#2448)Ignat Beresnev
* Update Jsoup to 1.14.3 * Fix Jsoup API breaking changes after the update * Fix new Qodana inspections * Replace IllegalStateException with more appropriate NoSuchElementException
2022-02-21Code cleanups (#2165)Goooler
2022-01-27Enhance generated primary constructor signature for html format (#2313)Ignat Beresnev
Fixes #1880
2022-01-27KT-50292 - Implement vertical alignment of parameters (#2309)Ignat Beresnev
* Implement vertical alignment (wrapping) of parameters for kt * Add tests for params wrapping and extend matchers to check for classes * Add distinguishable parameters block to kotlinAsJava, extract common logic * Create a separate Kind for symbol function parameters
2021-10-15Keep UI tabs (#2179)vmishenev
* Keep ui tabs * Group functions by description * Fix tests for keeping ui tabs
2021-10-14Add keywords `expect` and `actual` in signatures (#2182)vmishenev
2021-08-25Manual highlighting webhelp (#2079)vmishenev
* Add manual code highlighting * Fix test * Add kotlinAsJava highlighting * Add runtime highlighting via Prism * Add copy-button for code block * Add tests and refactor * Replace `<br>` for prism.js * Parse trivial default values Co-authored-by: Marcin Aman <marcin.aman@gmail.com>
2021-08-09Property annotation for getter and setter (#2049)vmishenev
2021-07-30Improve annotations rendering (#2045)vmishenev
omit parentheses if there are no parameters add quotes for string literals into annotations
2021-07-27Remove extra `fun` keyword in functional interface signature (#2040)vmishenev
2021-06-22Logging in CLI (#1976)Marcin Aman
2021-05-31Fix rendering html in briefs (#1931)Marcin Aman
2020-12-29Parsing of JvmName (#1675)Marcin Aman
* Parsing of JvmName * Make JvmName processor run after KaJ
2020-11-27Fixing tests after moving SingleGeneration to baseBłażej Kardyś
2020-10-08Improve stylesMarcin Aman
2020-10-06Fixing clashing properties and functions pagesBłażej Kardyś
2020-10-05Fix vararg signatures (#1516)Andrzej Ratajczak
2020-09-29Add processing of annotations to typealiasesAndrzej Ratajczak
2020-09-29Fix failing testsAndrzej Ratajczak
2020-09-28Add better handling of functional types in rendered outputAndrzej Ratajczak
2020-09-28Add default values for primitive proprties. Add presenting in signature ↵Andrzej Ratajczak
default values
2020-09-10Add testsAndrzej Ratajczak
2020-09-10Add TypeAliased boundAndrzej Ratajczak
2020-09-10Fix testsAndrzej Ratajczak
2020-09-08Remove topologicalSort since it is no longer usedAndrzej Ratajczak