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

Method SourceInfo

policy/parser.go:83–85  ·  view source on GitHub ↗

SourceInfo returns the policy file metadata about expression positions.

()

Source from the content-addressed store, hash-verified

81
82// SourceInfo returns the policy file metadata about expression positions.
83func (p *Policy) SourceInfo() *ast.SourceInfo {
84 return p.info
85}
86
87// Imports returns the list of imports associated with the policy.
88func (p *Policy) Imports() []*Import {

Callers 8

TestComposeFunction · 0.45
verifySourceInfoTransferFunction · 0.45
verifySourceInfoCoverageFunction · 0.45
exprLinesFromPolicyFunction · 0.45
CompileRuleFunction · 0.45
TestParseFunction · 0.45
TestExprHelperCopyFunction · 0.45
TestUnparseFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestComposeFunction · 0.36
verifySourceInfoTransferFunction · 0.36
verifySourceInfoCoverageFunction · 0.36
exprLinesFromPolicyFunction · 0.36
TestParseFunction · 0.36
TestExprHelperCopyFunction · 0.36
TestUnparseFunction · 0.36