MCPcopy Create free account
hub / github.com/vale-cli/vale / selectStringsV2

Function selectStringsV2

internal/core/view.go:141–151  ·  view source on GitHub ↗
(value DaselValue, expr string)

Source from the content-addressed store, hash-verified

139}
140
141func selectStringsV2(value DaselValue, expr string) ([]string, error) {
142 selected, err := v2dasel.Select(value, expr)
143 if err != nil {
144 return nil, err
145 }
146 results := make([]string, 0, len(selected))
147 for _, v := range selected {
148 results = append(results, v.String())
149 }
150 return results, nil
151}
152
153// scalarPos records a single scalar value's source position.
154type scalarPos struct {

Callers 1

selectStringsFunction · 0.85

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…