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

Function toParserHelper

cel/macro.go:582–590  ·  view source on GitHub ↗
(meh MacroExprHelper)

Source from the content-addressed store, hash-verified

580}
581
582func toParserHelper(meh MacroExprHelper) (parser.ExprHelper, *Error) {
583 ah, ok := meh.(*adaptingHelper)
584 if !ok {
585 return nil, common.NewError(0,
586 fmt.Sprintf("unsupported macro helper: %v (%T)", meh, meh),
587 common.NoLocation)
588 }
589 return ah.modernHelper, nil
590}

Callers 5

HasMacroExpanderFunction · 0.85
ExistsMacroExpanderFunction · 0.85
ExistsOneMacroExpanderFunction · 0.85
MapMacroExpanderFunction · 0.85
FilterMacroExpanderFunction · 0.85

Calls 1

NewErrorFunction · 0.92

Tested by

no test coverage detected