MCPcopy
hub / github.com/tomnomnom/gron / String

Method String

statements.go:26–32  ·  view source on GitHub ↗

String returns the string form of a statement rather than the underlying slice of tokens

()

Source from the content-addressed store, hash-verified

24// String returns the string form of a statement rather than the
25// underlying slice of tokens
26func (s statement) String() string {
27 out := make([]string, 0, len(s)+2)
28 for _, t := range s {
29 out = append(out, t.format())
30 }
31 return strings.Join(out, "")
32}
33
34// colorString returns the string form of a statement with ASCII color codes
35func (s statement) colorString() string {

Callers 4

TestStatementFunction · 0.95
statementToStringFunction · 0.80
valueTokenFromInterfaceFunction · 0.80
quoteStringFunction · 0.80

Calls 1

formatMethod · 0.80

Tested by 1

TestStatementFunction · 0.76