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

Method appendCall

common/debug/debug.go:117–138  ·  view source on GitHub ↗
(call ast.CallExpr)

Source from the content-addressed store, hash-verified

115}
116
117func (w *debugWriter) appendCall(call ast.CallExpr) {
118 if call.IsMemberFunction() {
119 w.Buffer(call.Target())
120 w.append(".")
121 }
122 w.append(call.FunctionName())
123 w.append("(")
124 if len(call.Args()) > 0 {
125 w.addIndent()
126 w.appendLine()
127 for i, arg := range call.Args() {
128 if i > 0 {
129 w.append(",")
130 w.appendLine()
131 }
132 w.Buffer(arg)
133 }
134 w.removeIndent()
135 w.appendLine()
136 }
137 w.append(")")
138}
139
140func (w *debugWriter) appendList(list ast.ListExpr) {
141 w.append("[")

Callers 1

BufferMethod · 0.95

Calls 9

BufferMethod · 0.95
appendMethod · 0.95
addIndentMethod · 0.95
appendLineMethod · 0.95
removeIndentMethod · 0.95
IsMemberFunctionMethod · 0.65
TargetMethod · 0.65
FunctionNameMethod · 0.65
ArgsMethod · 0.65

Tested by

no test coverage detected