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

Method SourceInfo

policy/parser.go:65–67  ·  view source on GitHub ↗

SourceInfo returns the policy file metadata about expression positions.

()

Source from the content-addressed store, hash-verified

63
64// SourceInfo returns the policy file metadata about expression positions.
65func (p *Policy) SourceInfo() *ast.SourceInfo {
66 return p.info
67}
68
69// Imports returns the list of imports associated with the policy.
70func (p *Policy) Imports() []*Import {

Callers 9

TestCompose_SourceInfoFunction · 0.45
TestCompose_UnnestFunction · 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 8

TestCompose_SourceInfoFunction · 0.36
TestCompose_UnnestFunction · 0.36
verifySourceInfoTransferFunction · 0.36
verifySourceInfoCoverageFunction · 0.36
exprLinesFromPolicyFunction · 0.36
TestParseFunction · 0.36
TestExprHelperCopyFunction · 0.36
TestUnparseFunction · 0.36