MCPcopy
hub / github.com/valyala/quicktemplate / init

Method init

parser/scanner.go:41–47  ·  view source on GitHub ↗
(id, line, pos int)

Source from the content-addressed store, hash-verified

39}
40
41func (t *token) init(id, line, pos int) {
42 t.ID = id
43 t.Value = t.Value[:0]
44
45 t.line = line
46 t.pos = pos
47}
48
49func (t *token) String() string {
50 return fmt.Sprintf("Token %q, value %q", tokenIDToStr(t.ID), t.Value)

Callers 5

NextMethod · 0.80
readPlainMethod · 0.80
readTextMethod · 0.80
readTagNameMethod · 0.80
readTagContentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected