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

Method appendList

common/debug/debug.go:140–156  ·  view source on GitHub ↗
(list ast.ListExpr)

Source from the content-addressed store, hash-verified

138}
139
140func (w *debugWriter) appendList(list ast.ListExpr) {
141 w.append("[")
142 if len(list.Elements()) > 0 {
143 w.appendLine()
144 w.addIndent()
145 for i, elem := range list.Elements() {
146 if i > 0 {
147 w.append(",")
148 w.appendLine()
149 }
150 w.Buffer(elem)
151 }
152 w.removeIndent()
153 w.appendLine()
154 }
155 w.append("]")
156}
157
158func (w *debugWriter) appendStruct(obj ast.StructExpr) {
159 w.append(obj.TypeName())

Callers 1

BufferMethod · 0.95

Calls 6

appendMethod · 0.95
appendLineMethod · 0.95
addIndentMethod · 0.95
BufferMethod · 0.95
removeIndentMethod · 0.95
ElementsMethod · 0.65

Tested by

no test coverage detected