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

Method read

xml/buffer.go:31–39  ·  view source on GitHub ↗
(t *Token)

Source from the content-addressed store, hash-verified

29}
30
31func (z *TokenBuffer) read(t *Token) {
32 t.TokenType, t.Data = z.l.Next()
33 t.Text = z.l.Text()
34 if t.TokenType == xml.AttributeToken {
35 t.AttrVal = z.l.AttrVal()
36 } else {
37 t.AttrVal = nil
38 }
39}
40
41// Peek returns the ith element and possibly does an allocation.
42// Peeking past an error will panic.

Callers 2

PeekMethod · 0.95
ShiftMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected