MCPcopy
hub / github.com/golang/net / parseImpliedToken

Method parseImpliedToken

html/parse.go:2188–2198  ·  view source on GitHub ↗

parseImpliedToken parses a token as though it had appeared in the parser's input.

(t TokenType, dataAtom a.Atom, data string)

Source from the content-addressed store, hash-verified

2186// parseImpliedToken parses a token as though it had appeared in the parser's
2187// input.
2188func (p *parser) parseImpliedToken(t TokenType, dataAtom a.Atom, data string) {
2189 realToken, selfClosing := p.tok, p.hasSelfClosingToken
2190 p.tok = Token{
2191 Type: t,
2192 DataAtom: dataAtom,
2193 Data: data,
2194 }
2195 p.hasSelfClosingToken = false
2196 p.parseCurrentToken()
2197 p.tok, p.hasSelfClosingToken = realToken, selfClosing
2198}
2199
2200// parseCurrentToken runs the current token through the parsing routines
2201// until it is consumed.

Callers 7

beforeHTMLIMFunction · 0.80
beforeHeadIMFunction · 0.80
inHeadIMFunction · 0.80
afterHeadIMFunction · 0.80
inBodyIMFunction · 0.80
inTableIMFunction · 0.80
inTableBodyIMFunction · 0.80

Calls 1

parseCurrentTokenMethod · 0.95

Tested by

no test coverage detected