stripContainerFromPath returns a PathAST with the first node (container) removed.
(path *parserbase.PathAST)
| 321 | |
| 322 | // stripContainerFromPath returns a PathAST with the first node (container) removed. |
| 323 | func stripContainerFromPath(path *parserbase.PathAST) *parserbase.PathAST { |
| 324 | if path != nil && path.Root != nil { |
| 325 | return parserbase.NewPathAST(path.Root.GetNext()) |
| 326 | } |
| 327 | return parserbase.NewPathAST(nil) |
| 328 | } |
| 329 | |
| 330 | // maskBySourcePaths checks if any source field path resolves to a sensitive semantic type. |
| 331 | // Returns (maskedValue, true, nil) if masked, or (nil, false, nil) if no path is sensitive. |
no test coverage detected