mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Generic ast (#1829)
Remove dependency on yaml.Node for internal AST representation. Yaml decoder is now just another decoder.
This commit is contained in:
@@ -6,7 +6,8 @@ func splitDocumentOperator(d *dataTreeNavigator, context Context, expressionNode
|
||||
var index uint
|
||||
for el := context.MatchingNodes.Front(); el != nil; el = el.Next() {
|
||||
candidate := el.Value.(*CandidateNode)
|
||||
candidate.Document = index
|
||||
candidate.SetDocument(index)
|
||||
candidate.SetParent(nil)
|
||||
index = index + 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user