NextID returns a monotonically increasing identifier for a source fragment. This ID is implicitly created and tracked within the CollectMetadata method.
()
| 598 | // NextID returns a monotonically increasing identifier for a source fragment. |
| 599 | // This ID is implicitly created and tracked within the CollectMetadata method. |
| 600 | func (p *parserImpl) NextID() int64 { |
| 601 | p.id++ |
| 602 | return p.id |
| 603 | } |
| 604 | |
| 605 | // NewPolicy creates a new Policy instance with an ID associated with the YAML node. |
| 606 | func (p *parserImpl) NewPolicy(node *yaml.Node) (*Policy, int64) { |