mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
[PR #413] [MERGED] Fix the sequence length in the YAML parser #540
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/413
Author: @luuvish
Created: 4/9/2024
Status: ✅ Merged
Merged: 4/10/2024
Merged by: @holzensp
Base:
main← Head:main📝 Commits (2)
5559ab1Fix the sequence length in the YAML parser5574d72Update expected test outcome📊 Changes
2 files changed (+24 additions, -7 deletions)
View changed files
📝
pkl-core/src/main/java/org/pkl/core/stdlib/yaml/ParserNodes.java(+8 -5)📝
pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser3.pcf(+16 -2)📄 Description
The initialSize in EconomicsMaps.create() is not the actual stored size, hence the accurate size is not determined until ObjectMembers are added after addMembers() called.
Since the size set during the creation of VmListing cannot be changed afterwards, the size of node.getValue() is used instead of members' size.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.