Skip to content

Commit

Permalink
fix: fix a bug that merge of sequences loses comments
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Dec 4, 2024
1 parent 5d22eed commit 6eac5f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ func (n *SequenceNode) Merge(target *SequenceNode) {
column := n.Start.Position.Column - target.Start.Position.Column
target.AddColumn(column)
n.Values = append(n.Values, target.Values...)
n.ValueHeadComments = append(n.ValueHeadComments, target.ValueHeadComments...)
}

// SetIsFlowStyle set value to IsFlowStyle field recursively.
Expand Down

0 comments on commit 6eac5f1

Please sign in to comment.