🧑‍💻 Improve kernel API appendAttributeViewDetachedBlocksWithValues

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-06 16:51:13 +08:00
parent e887d70a18
commit f94328034e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1148,6 +1148,9 @@ func AppendAttributeViewDetachedBlocksWithValues(avID string, blocksValues [][]*
var blockIDs []string
for _, blockValues := range blocksValues {
blockID := ast.NewNodeID()
if v := blockValues[0]; "" != v.BlockID {
blockID = v.BlockID
}
blockIDs = append(blockIDs, blockID)
for _, v := range blockValues {
keyValues, _ := attrView.GetKeyValues(v.KeyID)