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

Method NextID

policy/parser.go:600–603  ·  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

598// NextID returns a monotonically increasing identifier for a source fragment.
599// This ID is implicitly created and tracked within the CollectMetadata method.
600func (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.
606func (p *parserImpl) NewPolicy(node *yaml.Node) (*Policy, int64) {

Callers 1

CollectMetadataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected