$ the-wire · showcase
Kotlin PSI mutations stop throwing outside the IDE, Swift preps @called(exactlyOnce)
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
Kotlin's PSI mutation methods now work without KtPsiMutationService, unbreaking standalone tools built on kotlin-compiler-embeddable, while Swift lays groundwork for stricter @called semantics.
[PSI] Support plain delete() without KtPsiMutationService JetBrains/kotlin
A plain `PsiElement.delete()` on any Kotlin element used to fail with "Cannot mutate Kotlin PSI because KtPsiMutationService is missing" outside the IntelliJ Kotlin plugin and Kotlin LSP, which were the only registers of that service. The overrides now fall back to platform behavior, so standalone consumers like ktlint and Analysis API Standalone can delete Kotlin PSI again.
[PSI] Support plain updateText() without KtPsiMutationService JetBrains/kotlin
`updateText()` on string templates and KDoc sections failed for the same missing-service reason and now mirrors the IDE implementation when nothing is registered. For text that is not a whole string literal, the IDE path still delegates to the element manipulator, which standalone environments do not have.
KT-89846 [PSI] Support platform mutation methods without KtPsiMutationService JetBrains/kotlin
The broader fix covers `delete()`, `replace()`, `setName()`, and `updateText()` as a group, all of which have delegated to KtPsiMutationService since KT-85052. The compiler environment used by kotlin-compiler-embeddable clients threw IllegalStateException on every one of them.
Represent `@called` execution semantics as an optional enum apple/swift
In preparation for adding a stricter `@called(exactlyOnce)` alongside the existing `@called(atMostOnce)`, the single `CalledOnce` bit in `ASTExtInfo` and `SILExtInfo` is replaced by a two-bit field storing an `std::optional<ExecutionSemantics>`, with a new `hasCalledAtMostOnceSemantics()` for behavior shared by both. NFC for now, but it is the shape the stricter semantics will land on.
[Sema] Fix ternary expression failing to form a C function pointer apple/swift
A ternary expression that should form a C function pointer failed to do so because the stripped-form tie-break introduced in f3e6b4ceda5 cancelled the real subtype preference between converting the whole ternary to `@convention(c)` and converting only the function reference. The tie-break now applies only when the subtype relationship is bidirectional; spotted against the Xcode 27 beta.
[PSI] Deprecate the unused StringTemplateExpressionManipulator JetBrains/kotlin
`StringTemplateExpressionManipulator` is deprecated as unused, since nothing in the Kotlin or IntelliJ repositories registers it and `KtStringTemplateExpressionManipulator` is the actual element manipulator. The class is also worse than its replacement: for a single-quoted string it escapes interpolated expressions along with the literal text, breaking string literals inside them.