type github.com/evanw/esbuild/internal/js_ast.ENumber
73 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L571: type ENumber struct{ Value float64 }
js_ast.go#L668: func (*ENumber) isExpr() {}
js_ast.go#L726: case *ENumber:
js_ast.go#L810: case *ENumber:
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#L544: case *js_ast.ENumber:
js_parser.go#L599: case *js_ast.ENumber:
js_parser.go#L600: b, ok := right.Data.(*js_ast.ENumber)
js_parser.go#L644: case *js_ast.ENull, *js_ast.EUndefined, *js_ast.EString, *js_ast.EBoolean, *js_ast.ENumber, *js_ast.EBigInt:
js_parser.go#L660: case *js_ast.EBoolean, *js_ast.ENumber, *js_ast.EString, *js_ast.ERegExp,
js_parser.go#L722: case *js_ast.ENumber:
js_parser.go#L792: case *js_ast.ENumber:
js_parser.go#L813: case *js_ast.ENumber:
js_parser.go#L834: case *js_ast.ENull, *js_ast.EUndefined, *js_ast.EBoolean, *js_ast.ENumber, *js_ast.EBigInt, *js_ast.EString:
js_parser.go#L902: case *js_ast.ENumber:
js_parser.go#L903: r, ok := right.(*js_ast.ENumber)
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#L8596: case *js_ast.ENumber:
js_parser.go#L8605: value.Value = &js_ast.Expr{Loc: value.Loc, Data: &js_ast.ENumber{Value: nextNumericValue}}
js_parser.go#L8861: case *js_ast.ENumber:
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#L9314: case *js_ast.ENumber:
js_parser.go#L9454: return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: number}}, true
js_parser.go#L9760: case *js_ast.ENumber:
js_parser.go#L9848: case *js_ast.ENumber:
js_parser.go#L10086: return js_ast.JoinWithComma(js_ast.Expr{Loc: e.Left.Loc, Data: &js_ast.ENumber{}}, e.Right), exprOut{}
js_parser.go#L10195: return js_ast.JoinWithComma(js_ast.Expr{Loc: e.Left.Loc, Data: &js_ast.ENumber{}}, e.Right), exprOut{}
js_parser.go#L10223: return js_ast.JoinWithComma(js_ast.Expr{Loc: e.Left.Loc, Data: &js_ast.ENumber{}}, e.Right), exprOut{}
js_parser.go#L10253: return js_ast.JoinWithComma(js_ast.Expr{Loc: e.Left.Loc, Data: &js_ast.ENumber{}}, e.Right), exprOut{}
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#L10600: e.Value = js_ast.JoinWithComma(js_ast.Expr{Loc: e.Value.Loc, Data: &js_ast.ENumber{}}, e.Value)
js_parser.go#L10665: e.Value = js_ast.JoinWithComma(js_ast.Expr{Loc: e.Value.Loc, Data: &js_ast.ENumber{}}, e.Value)
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#L10855: return js_ast.JoinWithComma(js_ast.Expr{Loc: e.Test.Loc, Data: &js_ast.ENumber{}}, e.Yes), exprOut{}
js_parser.go#L10878: return js_ast.JoinWithComma(js_ast.Expr{Loc: e.Test.Loc, Data: &js_ast.ENumber{}}, e.No), exprOut{}
js_parser.go#L11054: case *js_ast.EBoolean, *js_ast.ENull, *js_ast.EUndefined, *js_ast.ENumber,
js_parser.go#L11586: return js_ast.Expr{Loc: loc, Data: &js_ast.ENumber{Value: number}}
js_parser.go#L11622: if a, ok := left.Data.(*js_ast.ENumber); ok {
js_parser.go#L11623: if b, ok := right.Data.(*js_ast.ENumber); ok {
js_parser.go#L12264: case *js_ast.ENull, *js_ast.EUndefined, *js_ast.EMissing, *js_ast.EBoolean, *js_ast.ENumber, *js_ast.EBigInt,
js_parser.go#L12393: case *js_ast.ENull, *js_ast.EUndefined, *js_ast.EMissing, *js_ast.EBoolean, *js_ast.ENumber, *js_ast.EBigInt,
js_parser.go#L12473: property.Value.Data = &js_ast.ENumber{}
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#L1491: case *js_ast.ENumber:
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#L1752: case *js_ast.ENumber:
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}},
js_parser_lower.go#L2321: case *js_ast.ENull, *js_ast.EUndefined, *js_ast.EBoolean, *js_ast.ENumber,
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#L1875: case *js_ast.ENumber:
js_printer.go#L2079: } else if _, ok := e.Left.Data.(*js_ast.ENumber); ok {
github.com/evanw/esbuild/pkg/api
api_impl.go#L432: case *js_ast.ENumber:
api_impl.go#L433: fn = func(config.DefineArgs) js_ast.E { return &js_ast.ENumber{Value: e.Value} }
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |