(f *dql.FilterTree)
| 903 | } |
| 904 | |
| 905 | func parsePredsFromFilter(f *dql.FilterTree) []string { |
| 906 | var preds []string |
| 907 | if f == nil { |
| 908 | return preds |
| 909 | } |
| 910 | if f.Func != nil && len(f.Func.Attr) > 0 { |
| 911 | preds = append(preds, f.Func.Attr) |
| 912 | } |
| 913 | for _, ch := range f.Child { |
| 914 | preds = append(preds, parsePredsFromFilter(ch)...) |
| 915 | } |
| 916 | return preds |
| 917 | } |
| 918 | |
| 919 | type accessEntry struct { |
| 920 | userId string |
no outgoing calls
no test coverage detected