(node yamlmeta.Node)
| 56 | } |
| 57 | |
| 58 | func (t *typeChecker) Visit(node yamlmeta.Node) error { |
| 59 | nodeType := GetType(node) |
| 60 | if nodeType == nil { |
| 61 | return nil |
| 62 | } |
| 63 | |
| 64 | chk := nodeType.CheckType(node) |
| 65 | if chk.HasViolations() { |
| 66 | t.chk.Violations = append(t.chk.Violations, chk.Violations...) |
| 67 | } |
| 68 | |
| 69 | return nil |
| 70 | } |
| 71 | |
| 72 | var _ yamlmeta.Visitor = &typeChecker{} |
| 73 |
nothing calls this directly
no test coverage detected