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

Method GetLocation

parser/parser_test.go:2746–2749  ·  view source on GitHub ↗
(exprID int64)

Source from the content-addressed store, hash-verified

2744var _ metadata = &locationAdorner{}
2745
2746func (l *locationAdorner) GetLocation(exprID int64) (common.Location, bool) {
2747 loc := l.sourceInfo.GetStartLocation(exprID)
2748 return loc, loc != common.NoLocation
2749}
2750
2751func (l *locationAdorner) GetMetadata(elem any) string {
2752 var elemID int64

Callers 1

GetMetadataMethod · 0.95

Calls 1

GetStartLocationMethod · 0.80

Tested by

no test coverage detected