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

Method GetMetadata

common/debug/debug.go:318–324  ·  view source on GitHub ↗
(elem any)

Source from the content-addressed store, hash-verified

316type idAdorner struct{}
317
318func (a *idAdorner) GetMetadata(elem any) string {
319 e, isExpr := elem.(ast.Expr)
320 if !isExpr {
321 return ""
322 }
323 return fmt.Sprintf("@id:%d ", e.ID())
324}
325
326// ToDebugStringWithIDs returns a string representation with AST node IDs.
327func ToDebugStringWithIDs(e ast.Expr) string {

Callers

nothing calls this directly

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected