pkl / PR 1257

Add `Object.toMixin()` method

apple/pkl#1257 openmixed

+1055/−5lines
7files
17comments
2025-10-27opened
-merged

What it touches

test: 4 main: 2 other: 1

Modules: pkl-core (6), stdlib (1)

Architectural impact (arcade-agent diff_impact)

No production Java file of this PR maps into the dependency graph (tests, build, CI or docs only). Tests are excluded from the graph by design.

Files

mainpkl-core/src/main/java/org/pkl/core/ast/ObjectToMixinNode.java
mainpkl-core/src/main/java/org/pkl/core/stdlib/base/ObjectNodes.java
testpkl-core/src/test/files/LanguageSnippetTests/input/api/objectToMixin.pkl
testpkl-core/src/test/files/LanguageSnippetTests/output/api/objectToMixin.pcf
testpkl-core/src/test/files/LanguageSnippetTests/output/api/reflectedDeclaration.pcf
testpkl-core/src/test/kotlin/org/pkl/core/ReplServerTest.kt
otherstdlib/base.pkl