MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / expectChar

Method expectChar

pkg/vdom/cssparser/cssparser.go:138–144  ·  view source on GitHub ↗
(expected rune)

Source from the content-addressed store, hash-verified

136}
137
138func (p *Parser) expectChar(expected rune) bool {
139 if !p.eof() && p.peekChar() == expected {
140 p.advance()
141 return true
142 }
143 return false
144}
145
146func (p *Parser) peekChar() rune {
147 if p.Pos >= p.Length {

Callers 2

ParseMethod · 0.95
parseIdentifierColonMethod · 0.95

Calls 3

eofMethod · 0.95
peekCharMethod · 0.95
advanceMethod · 0.95

Tested by

no test coverage detected