File: undefined.go

package info (click to toggle)
mongo-tools 3.2.11-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,612 kB
  • ctags: 10,571
  • sloc: python: 5,428; ansic: 589; sh: 397; makefile: 62; lisp: 19
file content (13 lines) | stat: -rw-r--r-- 360 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 undefined.
// Adapted from encoding/json/scanner.go.

// stateU is the state after reading `u`.
func stateU(s *scanner, c int) int {
	if c == 'n' {
		s.step = generateState("undefined", []byte("defined"), stateEndValue)
		return scanContinue
	}
	return s.error(c, "in literal undefined (expecting 'n')")
}