MCPcopy
hub / github.com/tdewolff/minify / String

Method String

css/css.go:82–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (t Token) String() string {
83 if len(t.Args) == 0 {
84 return t.TokenType.String() + "(" + string(t.Data) + ")"
85 }
86
87 sb := strings.Builder{}
88 sb.Write(t.Data)
89 for _, arg := range t.Args {
90 sb.WriteString(arg.String())
91 }
92 sb.WriteByte(')')
93 return sb.String()
94}
95
96// Equal returns true if both tokens are equal.
97func (t Token) Equal(t2 Token) bool {

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
stringFunction · 0.50
WriteMethod · 0.45

Tested by

no test coverage detected