MCPcopy Create free account
hub / github.com/google/gapid / xml

Method xml

core/os/android/binaryxml/xml_end_element.go:52–60  ·  view source on GitHub ↗
(ctx *xmlContext)

Source from the content-addressed store, hash-verified

50}
51
52func (c *xmlEndElement) xml(ctx *xmlContext) string {
53 b := bytes.Buffer{}
54 c.updateContext(ctx)
55 b.WriteString(strings.Repeat(ctx.tab, ctx.indent))
56 b.WriteString("</")
57 b.WriteString(c.name.get())
58 b.WriteRune('>')
59 return b.String()
60}
61
62func (c *xmlEndElement) updateContext(ctx *xmlContext) {
63 ctx.stack.pop()

Callers

nothing calls this directly

Calls 5

updateContextMethod · 0.95
WriteStringMethod · 0.80
getMethod · 0.65
StringMethod · 0.65
WriteRuneMethod · 0.45

Tested by

no test coverage detected