File: minkey.go

package info (click to toggle)
mongo-tools 3.4.14-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,612 kB
  • sloc: python: 9,281; asm: 4,229; ansic: 1,606; sh: 817; makefile: 67; cpp: 59; lisp: 19
file content (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
package json

// Transition functions for recognizing MinKey.
// Adapted from encoding/json/scanner.go.

// stateUpperMi is the state after reading `Mi`.
func stateUpperMi(s *scanner, c int) int {
	if c == 'n' {
		s.step = generateState("MinKey", []byte("Key"), stateOptionalConstructor)
		return scanContinue
	}
	return s.error(c, "in literal MinKey (expecting 'n')")
}