chopping through index changes, basic design works.

seems to be holding, more tests to change.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-10-16 14:56:58 -04:00
parent d5f72a2a2e
commit cea7bb0cc8
8 changed files with 183 additions and 128 deletions

View File

@@ -149,9 +149,7 @@ func (index *SpecIndex) ExtractRefs(node, parent *yaml.Node, seenPath []string,
index.linesWithRefs[n.Line] = true
fp := make([]string, len(seenPath))
for x, foundPathNode := range seenPath {
fp[x] = foundPathNode
}
copy(fp, seenPath)
value := node.Content[i+1].Value