tree: 6dad9f442f2a749e7f97ed05eb594478fb5a4678
  1. resources/
  2. src/
  3. stableReleaseTests/
  4. test/
  5. build.gradle.kts
  6. Readme.md
compiler/arguments/Readme.md

Kotlin compiler arguments

Contains a unified representation of Kotlin compiler arguments for current and old Kotlin releases.

One representation is a Kotlin-based - check org.jetbrains.kotlin.arguments.description.compilerArguments. Another one representation is JSON-based that is bundled into a published jar as kotlin-compiler-arguments.json file.

JSON schema changelog

  • 1: Initial schema
  • 2: Extended AllKotlinArgumentTypes with klibIrInlinerMode. New argument value type: KlibIrInlinerModeType.
  • 3:
    • Added affectsCompilationOutcome and argumentType fields to KotlinCompilerArgument.
    • Added modifiers field to KotlinCompilerArgumentsLevel with new Modifier enum (DEPRECATED, SEALED).
    • Extended AllKotlinArgumentTypes with new enum types: JvmDefaultMode, AbiStabilityMode, AssertionsMode, JspecifyAnnotationsMode, LambdasMode, SamConversionsMode, StringConcatMode, CompatqualAnnotationsMode, WhenExpressionsMode, JdkRelease, AnnotationDefaultTargetMode, NameBasedDestructuringMode, VerifyIrMode.
    • New argument value types: PathType, StringListType, SearchPathType, PathListType, EnumType.
    • Add relevant Path argumentType to some String arguments carrying paths in Klib and JS argument
    • Add enum types to all relevant JS and Wasm arguments that carry a finite set of String values
  • 4:
    • Change modeName to name in /types/explicitApiModes/values