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

Method SourceInfo

common/ast/ast.go:43–48  ·  view source on GitHub ↗

SourceInfo returns the source metadata associated with the parse / type-check passes.

()

Source from the content-addressed store, hash-verified

41
42// SourceInfo returns the source metadata associated with the parse / type-check passes.
43func (a *AST) SourceInfo() *SourceInfo {
44 if a == nil {
45 return nil
46 }
47 return a.sourceInfo
48}
49
50// GetType returns the type for the expression at the given id, if one exists, else types.DynType.
51func (a *AST) GetType(id int64) *types.Type {

Callers 13

IDsMethod · 0.95
ClearUnusedIDsMethod · 0.95
NewCheckedASTFunction · 0.45
CopyFunction · 0.45
MaxIDFunction · 0.45
TestASTCopyFunction · 0.45
TestASTJsonNamesFunction · 0.45
TestASTNilSafetyFunction · 0.45
TestMaxIDFunction · 0.45
TestConvertASTFunction · 0.45
TestConvertExprFunction · 0.45
TestSourceInfoToProtoFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestASTCopyFunction · 0.36
TestASTJsonNamesFunction · 0.36
TestASTNilSafetyFunction · 0.36
TestMaxIDFunction · 0.36
TestConvertASTFunction · 0.36
TestConvertExprFunction · 0.36
TestSourceInfoToProtoFunction · 0.36