github.com/evanw/esbuild/internal/js_ast.ENumber.Value (field)

58 uses

	github.com/evanw/esbuild/internal/js_ast (current package)
		js_ast.go#L571: type ENumber struct{ Value float64 }
		js_ast.go#L727: 		return Expr{Loc: expr.Loc, Data: &EBoolean{Value: e.Value == 0 || math.IsNaN(e.Value)}}, true

	github.com/evanw/esbuild/internal/config
		globals.go#L901: 		DefineFunc: func(DefineArgs) js_ast.E { return &js_ast.ENumber{Value: math.NaN()} },
		globals.go#L904: 		DefineFunc: func(DefineArgs) js_ast.E { return &js_ast.ENumber{Value: math.Inf(1)} },

	github.com/evanw/esbuild/internal/js_parser
		js_parser.go#L545: 		bits := math.Float64bits(e.Value)
		js_parser.go#L601: 		return ok && a.Value == b.Value, false
		js_parser.go#L723: 		return e.Value != 0 && !math.IsNaN(e.Value), noSideEffects, true
		js_parser.go#L793: 		return e.Value, true
		js_parser.go#L904: 		return ok && l.Value == r.Value, ok
		js_parser.go#L1725: 		key = js_ast.Expr{Loc: p.lexer.Loc(), Data: &js_ast.ENumber{Value: p.lexer.Number}}
		js_parser.go#L2083: 		key = js_ast.Expr{Loc: p.lexer.Loc(), Data: &js_ast.ENumber{Value: p.lexer.Number}}
		js_parser.go#L2801: 		value := js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: p.lexer.Number}}
		js_parser.go#L8597: 					valuesSoFar[name] = e.Value
		js_parser.go#L8599: 					nextNumericValue = e.Value + 1
		js_parser.go#L8605: 				value.Value = &js_ast.Expr{Loc: value.Loc, Data: &js_ast.ENumber{Value: nextNumericValue}}
		js_parser.go#L8862: 		valueFunc = func() js_ast.Expr { return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: e.Value}} }
		js_parser.go#L9317: 		if e.Value == 0 && math.Signbit(e.Value) {
		js_parser.go#L9332: 		if math.IsNaN(e.Value) {
		js_parser.go#L9454: 					return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: number}}, true
		js_parser.go#L9761: 		return math.IsInf(e.Value, 1) || math.IsNaN(e.Value)
		js_parser.go#L10277: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: left + right}}, exprOut{}
		js_parser.go#L10296: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: left - right}}, exprOut{}
		js_parser.go#L10303: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: left * right}}, exprOut{}
		js_parser.go#L10310: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: left / right}}, exprOut{}
		js_parser.go#L10317: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: math.Mod(left, right)}}, exprOut{}
		js_parser.go#L10324: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: math.Pow(left, right)}}, exprOut{}
		js_parser.go#L10336: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: float64(toInt32(left) << (toUint32(right) & 31))}}, exprOut{}
		js_parser.go#L10343: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: float64(toInt32(left) >> (toUint32(right) & 31))}}, exprOut{}
		js_parser.go#L10350: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: float64(toUint32(left) >> (toUint32(right) & 31))}}, exprOut{}
		js_parser.go#L10357: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: float64(toInt32(left) & toInt32(right))}}, exprOut{}
		js_parser.go#L10364: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: float64(toInt32(left) | toInt32(right))}}, exprOut{}
		js_parser.go#L10371: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: float64(toInt32(left) ^ toInt32(right))}}, exprOut{}
		js_parser.go#L10695: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: number}}, exprOut{}
		js_parser.go#L10700: 					return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.ENumber{Value: -number}}, exprOut{}
		js_parser.go#L11586: 					return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: number}}
		js_parser.go#L11624: 			return a.Value, b.Value, true
		js_parser_lower.go#L1039: 			Right: js_ast.Expr{Loc: target.Loc, Data: &js_ast.ENumber{Value: 1}},
		js_parser_lower.go#L1048: 		Right: js_ast.Expr{Loc: target.Loc, Data: &js_ast.ENumber{Value: 1}},
		js_parser_lower.go#L1500: 				Left:  js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: k.Value}},
		js_parser_lower.go#L1682: 								{Loc: decorator.Loc, Data: &js_ast.ENumber{Value: float64(i)}},
		js_parser_lower.go#L1753: 					descriptorKey = js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: k.Value}}
		js_parser_lower.go#L1780: 					{Loc: loc, Data: &js_ast.ENumber{Value: descriptorKind}},
		json_parser.go#L56: 		return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: value}}
		json_parser.go#L62: 		return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: -value}}
		sourcemap_parser.go#L41: 			if value, ok := prop.Value.Data.(*js_ast.ENumber); ok && value.Value == 3 {

	github.com/evanw/esbuild/internal/js_printer
		js_printer.go#L1876: 		value := e.Value

	github.com/evanw/esbuild/pkg/api
		api_impl.go#L433: 			fn = func(config.DefineArgs) js_ast.E { return &js_ast.ENumber{Value: e.Value} }