File: nan.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-- 314 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 NaN.
// Adapted from encoding/json/scanner.go.

// stateUpperNa is the state after reading `Na`.
func stateUpperNa(s *scanner, c int) int {
	if c == 'N' {
		s.step = stateEndValue
		return scanContinue
	}
	return s.error(c, "in literal NaN (expecting 'N')")
}