MCPcopy
hub / github.com/pquerna/ffjson / Reset

Method Reset

fflib/v1/lexer.go:130–137  ·  view source on GitHub ↗

Reset the Lexer and add new input.

(input []byte)

Source from the content-addressed store, hash-verified

128
129// Reset the Lexer and add new input.
130func (ffl *FFLexer) Reset(input []byte) {
131 ffl.Token = FFTok_init
132 ffl.Error = FFErr_e_ok
133 ffl.BigError = nil
134 ffl.reader.Reset(input)
135 ffl.lastCurrentChar = 0
136 ffl.Output.Reset()
137}
138
139func (le *LexerError) Error() string {
140 return fmt.Sprintf(`ffjson error: (%T)%s offset=%d line=%d char=%d`,

Callers

nothing calls this directly

Calls 1

ResetMethod · 0.65

Tested by

no test coverage detected