(src *Source, docNode *yaml.Node)
| 606 | } |
| 607 | |
| 608 | func sourceToYAML(src *Source, docNode *yaml.Node) error { |
| 609 | err := yaml.Unmarshal([]byte(src.Content()), docNode) |
| 610 | if err != nil { |
| 611 | return err |
| 612 | } |
| 613 | if docNode.Kind != yaml.DocumentNode { |
| 614 | return fmt.Errorf("got yaml node of kind %v, wanted mapping node", docNode.Kind) |
| 615 | } |
| 616 | return nil |
| 617 | } |
| 618 | |
| 619 | func newParserImpl(visitor TagVisitor, info *ast.SourceInfo, src *Source, iss *cel.Issues, arrayStyleVariables bool) *parserImpl { |
| 620 | return &parserImpl{ |