CallExpr defines an interface for inspecting a function call and its arguments.
| 160 | |
| 161 | // CallExpr defines an interface for inspecting a function call and its arguments. |
| 162 | type 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. |
| 180 | type ListExpr interface { |
no outgoing calls
no test coverage detected