MCPcopy
hub / github.com/google/mtail / newline

Method newline

internal/runtime/compiler/parser/unparser.go:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (u *Unparser) newline() {
43 u.output.WriteString(u.prefix())
44 u.output.WriteString(u.line.String())
45 u.output.WriteString("\n")
46 u.line.Reset()
47}
48
49// VisitBefore implements the ast.Visitor interface.
50func (u *Unparser) VisitBefore(n ast.Node) (ast.Visitor, ast.Node) {

Callers 1

VisitBeforeMethod · 0.95

Calls 2

prefixMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected