aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/model
AgeCommit message (Collapse)Author
2023-10-26[K2] Support kotlin-as-java and javadoc plugins and update version of ↵Vadim Mishenev
Analysis API (#3227) * Implement InheritanceBuilder and for symbols * Enable tests for as-java and javadoc plugins and fix some * Update the version of Analysis API and enable test * Use assert from kotlin.test * Rename `descriptorInheritanceBuilder` * Fix after rebasing * Mute test `two classes from different packages`
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-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-08-04Fix handling of Java contravariance (#3092)Julia McClellan
2023-07-26Fix some tests to be compatible with K2 (#3086)Vadim Mishenev
2023-07-21Add tests for parsing data objects (#3076)Ignat Beresnev
2023-07-05Decompose Kotlin/Java analysis (#3034)Ignat Beresnev
* Extract analysis into separate modules
2023-02-24Mark Plugin Api as experimental (#2743)Vadim Mishenev
2023-02-09Remove old test data (#2824)Ignat Beresnev
2023-01-23Dispose `AnalysisEnvironment` (#2755)Vadim Mishenev
2023-01-12Default Java constructor (#2795)Andrey Tyrin
2022-10-21Fix inheriting docs in case of diamond inheritance (#2686)Vadim Mishenev
2022-10-13Ignore BuiltIns for StdLib (#2658)Vadim Mishenev
2022-09-27Fix some extra indentation in code block that is inside list (#2233)Vadim Mishenev
2022-09-26Trim four spaces inside indented code block (#2661)Vadim Mishenev
* Trim four spaces inside indented code block * Fix test
2022-08-30Fix missing space between Markdown elements (#2640)Vadim Mishenev
2022-08-29Display inherited extensions (#2625)Vadim Mishenev
2022-08-18Fix generic types caching (#2619)Vadim Mishenev
2022-07-07Improve handling of Java annotation parameters (#2562)Ignat Beresnev
Fixes #2509 Fixes #2551 Fixes #2350
2022-06-30Mark synthetic methods generated for Java enums as obvious (#2554)Ignat Beresnev
Fixes #2548
2022-05-31Fix gathering inherited properties (#2481)Ignat Beresnev
* Fix gathering inherited properties in PSI * Refacotr KaJ transformer. Change wrapping TagWrapper for getters and setters. * Add logic to merge inherited properties in kotlin from java sources. * Remove getters and setters from JvmField properties for DObject, DEnum, DInterface in KaJ. * Unify InheritedMember DRI logic. * Fix gathering docs obtained from inheriting java sources in descriptors * Apply requested changes. * Resolve rebase conflicts * Use 221 for qodana analysis * Move accessors generation into DefaultDescriptorToDocumentableTranslator * Fix special "is" case for accessors and refactor logic in general * Remove ambiguous import after rebasing * Remove unused imports and format code * Apply review comment suggestions * Preserve previously lost accessor lookalikes * Extract a variable and correct a typo Co-authored-by: Andrzej Ratajczak <andrzej.ratajczak98@gmail.com>
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-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-03-30Fix type parameter annotation regression (#2388) (#2410)Ignat Beresnev
2022-02-21Code cleanups (#2165)Goooler
2022-01-27Fix resolving DRIs of Enum Entries (#2305)Andrzej Ratajczak
* Fix resolving DRIs of Enum Entries * Unify DRIs for Kotlin and Java enums. Add EnumEntry linking tests * Updates EnumEntry extras in documentable translators * Fix tests * Apply requested changes * Apply requested changes
2021-12-23Introduce documentedVisibilities setting (#2270)Ignat Beresnev
* Introduce `documentedVisibilities` setting * Remove hardcoded doc generation for Visibility.PUBLIC, correct tests * Add maven, gradle and cli integration tests for documentedVisibilities * Fix maven plugin configuration overriding the default value * Remove test debug prints * Correct an inconsistency with default values and leave a comment of intentions * Add a test for visibility of private setter
2021-11-12Store checked exceptions into `ExtraProperties` (#2222)vmishenev
2021-09-21Fix link to javadoc enum entry (#2131)vmishenev
2021-09-08Fix links of inherited properties, do not generate pages for themvmishenev
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-07-23Add numeric types of annotation parameter value (#2035)vmishenev
2021-06-22Multilanguage docs inheritance (#1951)Marcin Aman
* Multilanguage docs inheritance * Add map to store inherit doc entries
2021-05-06Bump compiler to 1.5.0 (#1856)Marcin Aman
* Bump compiler to 1.5.0 * Include Api changes
2021-04-14Fix missing annotations in GFM and unresolved static imports (#1845)Marcin Aman
* Fix missing unresolved links in GFM * Fix missing links to elements imported as static
2021-03-04Obvious functions should also work for interfaces (#1763)Marcin Aman
2021-02-16Fix displaying default java visibility (#1738)Marcin Aman
2021-02-05Annotations for parameters (#1710)Marcin Aman
* Annotations for parameters * Annotations for parameters
2021-01-20Annotations for parameters (#1704)Marcin Aman
2020-12-29Parsing of JvmName (#1675)Marcin Aman
* Parsing of JvmName * Make JvmName processor run after KaJ
2020-12-03Resolve DRI-s from valueOf and values in java enum (#1655)Marcin Aman
2020-10-15Fix class cast exception when creating the ancestry treeKamil Doległo
2020-10-07Introduce top-level DocTagAndrzej Ratajczak
2020-08-31Re-use includes form child tasks for all modules page generationsebastian.sellmair
2020-08-31Let root package be represented as [root] to the usersebastian.sellmair
2020-08-31Let `DRI.packageName` always be a real package name for root packages ("")sebastian.sellmair
2020-08-17Fix generic supertypes to hold TypeParametersAndrzej Ratajczak