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

Interface CallExpr

common/ast/expr.go:162–177  ·  view source on GitHub ↗

CallExpr defines an interface for inspecting a function call and its arguments.

Source from the content-addressed store, hash-verified

160
161// CallExpr defines an interface for inspecting a function call and its arguments.
162type CallExpr interface {
163 // FunctionName returns the name of the function.
164 FunctionName() string
165
166 // IsMemberFunction returns whether the call has a non-nil target indicating it is a member function
167 IsMemberFunction() bool
168
169 // Target returns the target of the expression if one is present.
170 Target() Expr
171
172 // Args returns the list of call arguments, excluding the target.
173 Args() []Expr
174
175 // marker interface method
176 isExpr()
177}
178
179// ListExpr defines an interface for inspecting a list literal expression.
180type ListExpr interface {

Callers 32

VisitExprMethod · 0.65
VisitExprMethod · 0.65
OptimizeMethod · 0.65
isOptionalNoneFunction · 0.65
resolveFunctionMethod · 0.65
maybePruneFunctionMethod · 0.65
pruneMethod · 0.65
VisitExprMethod · 0.65
resolveFunctionMethod · 0.65
pruneMethod · 0.65
isCelBindMacroFunction · 0.65

Implementers 1

baseCallExprcommon/ast/expr.go

Calls

no outgoing calls

Tested by

no test coverage detected