MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / allPaths

Method allPaths

pkg/util/json/json.go:847–862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

845}
846
847func (j jsonArray) allPaths() ([]JSON, error) {
848 if len(j) == 0 {
849 return []JSON{j}, nil
850 }
851 ret := make([]JSON, 0, len(j))
852 for i := range j {
853 paths, err := j[i].allPaths()
854 if err != nil {
855 return nil, err
856 }
857 for _, path := range paths {
858 ret = append(ret, jsonArray{path})
859 }
860 }
861 return ret, nil
862}
863
864func (j jsonObject) allPaths() ([]JSON, error) {
865 if len(j) == 0 {

Callers

nothing calls this directly

Calls 1

allPathsMethod · 0.65

Tested by

no test coverage detected