MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NextID

Method NextID

policy/parser.go:642–645  ·  view source on GitHub ↗

NextID returns a monotonically increasing identifier for a source fragment. This ID is implicitly created and tracked within the CollectMetadata method.

()

Source from the content-addressed store, hash-verified

640// NextID returns a monotonically increasing identifier for a source fragment.
641// This ID is implicitly created and tracked within the CollectMetadata method.
642func (p *parserImpl) NextID() int64 {
643 p.id++
644 return p.id
645}
646
647// NewPolicy creates a new Policy instance with an ID associated with the YAML node.
648func (p *parserImpl) NewPolicy(node *yaml.Node) (*Policy, int64) {

Callers 1

CollectMetadataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected