MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / setSyntaxErrorf

Method setSyntaxErrorf

xmlparser/decoder.go:877–880  ·  view source on GitHub ↗

setSyntaxErrorf sets a syntax error with the current line number.

(format string, a ...any)

Source from the content-addressed store, hash-verified

875
876// setSyntaxErrorf sets a syntax error with the current line number.
877func (d *Decoder) setSyntaxErrorf(format string, a ...any) {
878 msg := fmt.Sprintf(format, a...)
879 d.err = newSyntaxError("%s (line %d)", msg, d.line)
880}

Callers 9

readStartTagMethod · 0.95
readEndTagMethod · 0.95
readProcInstMethod · 0.95
readCommentMethod · 0.95
readCDataMethod · 0.95
readDoctypeMethod · 0.95
mustReadByteMethod · 0.95
mustReadUntilMethod · 0.95
mustPeekMethod · 0.95

Calls 1

newSyntaxErrorFunction · 0.85

Tested by

no test coverage detected