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

Method writeSpaceAfterIdent

js/js.go:103–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (m *jsMinifier) writeSpaceAfterIdent() {
104 // space after identifier and after regular expression (to prevent confusion with its tag)
105 if js.IsIdentifierEnd(m.prev) || 1 < len(m.prev) && m.prev[0] == '/' {
106 m.w.Write(spaceBytes)
107 }
108}
109
110func (m *jsMinifier) writeSpaceBeforeIdent() {
111 m.needsSpace = true

Callers 2

minifyStmtMethod · 0.95
minifyExprMethod · 0.95

Calls 2

lenFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected