type github.com/evanw/esbuild/internal/js_parser.exprOut
103 uses
github.com/evanw/esbuild/internal/js_parser (current package)
js_parser.go#L9645: type exprOut struct {
js_parser.go#L9828: func (p *parser) visitExprInOut(expr js_ast.Expr, in exprIn) (js_ast.Expr, exprOut) {
js_parser.go#L9857: return value, exprOut{}
js_parser.go#L9863: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EIdentifier{Ref: p.captureThis()}}, exprOut{}
js_parser.go#L9875: return p.valueForDefine(expr.Loc, in.assignTarget, isDeleteTarget, define.Data.DefineFunc), exprOut{}
js_parser.go#L9884: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EIdentifier{Ref: p.importMetaRef}}, exprOut{}
js_parser.go#L9924: return new, exprOut{}
js_parser.go#L9945: }), exprOut{}
js_parser.go#L9997: }}, exprOut{}
js_parser.go#L10012: return p.mangleTemplate(expr.Loc, e), exprOut{}
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#L10088: return e.Right, exprOut{}
js_parser.go#L10104: return js_ast.Expr{Loc: expr.Loc, Data: data}, exprOut{}
js_parser.go#L10119: return result, exprOut{}
js_parser.go#L10125: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EBoolean{Value: result}}, exprOut{}
js_parser.go#L10140: return result, exprOut{}
js_parser.go#L10146: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EBoolean{Value: !result}}, exprOut{}
js_parser.go#L10161: return result, exprOut{}
js_parser.go#L10167: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EBoolean{Value: !result}}, exprOut{}
js_parser.go#L10182: return result, exprOut{}
js_parser.go#L10189: return e.Left, 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#L10198: return e.Right, exprOut{}
js_parser.go#L10211: return p.lowerNullishCoalescing(expr.Loc, e.Left, e.Right), exprOut{}
js_parser.go#L10217: return e.Left, 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#L10225: return e.Right, exprOut{}
js_parser.go#L10247: return e.Left, 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#L10255: return 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#L10283: return *result, exprOut{}
js_parser.go#L10289: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EBinary{Op: left.Op, Left: left.Left, Right: *result}}, 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#L10330: return p.callRuntime(expr.Loc, "__pow", []js_ast.Expr{e.Left, e.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#L10385: return p.lowerPrivateSet(target, loc, private, e.Right), exprOut{}
js_parser.go#L10394: return result, exprOut{}
js_parser.go#L10400: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpAdd, e.Right), exprOut{}
js_parser.go#L10405: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpSub, e.Right), exprOut{}
js_parser.go#L10410: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpMul, e.Right), exprOut{}
js_parser.go#L10415: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpDiv, e.Right), exprOut{}
js_parser.go#L10420: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpRem, e.Right), exprOut{}
js_parser.go#L10426: return p.lowerExponentiationAssignmentOperator(expr.Loc, e), exprOut{}
js_parser.go#L10430: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpPow, e.Right), exprOut{}
js_parser.go#L10435: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpShl, e.Right), exprOut{}
js_parser.go#L10440: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpShr, e.Right), exprOut{}
js_parser.go#L10445: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpUShr, e.Right), exprOut{}
js_parser.go#L10450: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpBitwiseOr, e.Right), exprOut{}
js_parser.go#L10455: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpBitwiseAnd, e.Right), exprOut{}
js_parser.go#L10460: return p.lowerPrivateSetBinOp(target, loc, private, js_ast.BinOpBitwiseXor, e.Right), exprOut{}
js_parser.go#L10465: return p.lowerNullishCoalescingAssignmentOperator(expr.Loc, e), exprOut{}
js_parser.go#L10470: return p.lowerLogicalAssignmentOperator(expr.Loc, e, js_ast.BinOpLogicalAnd), exprOut{}
js_parser.go#L10475: return p.lowerLogicalAssignmentOperator(expr.Loc, e, js_ast.BinOpLogicalOr), exprOut{}
js_parser.go#L10489: }), exprOut{}
js_parser.go#L10540: return p.lowerPrivateGet(e.Target, e.Index.Loc, private), exprOut{}
js_parser.go#L10548: return p.lowerSuperPropertyAccess(expr.Loc, e.Index), exprOut{}
js_parser.go#L10558: out = exprOut{
js_parser.go#L10608: return js_ast.Expr{Loc: expr.Loc, Data: p.typeofRequire}, exprOut{}
js_parser.go#L10613: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EString{Value: js_lexer.StringToUTF16(typeof)}}, exprOut{}
js_parser.go#L10679: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EBoolean{Value: !boolean}}, exprOut{}
js_parser.go#L10684: return result, exprOut{}
js_parser.go#L10690: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EUndefined{}}, 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#L10708: return p.lowerPrivateSetUnOp(target, loc, private, js_ast.BinOpSub, false), exprOut{}
js_parser.go#L10713: return p.lowerPrivateSetUnOp(target, loc, private, js_ast.BinOpAdd, false), exprOut{}
js_parser.go#L10718: return p.lowerPrivateSetUnOp(target, loc, private, js_ast.BinOpSub, true), exprOut{}
js_parser.go#L10723: return p.lowerPrivateSetUnOp(target, loc, private, js_ast.BinOpAdd, true), exprOut{}
js_parser.go#L10737: }), exprOut{}
js_parser.go#L10751: return p.valueForDefine(expr.Loc, in.assignTarget, isDeleteTarget, define.Data.DefineFunc), exprOut{}
js_parser.go#L10799: return p.lowerSuperPropertyAccess(expr.Loc, key), exprOut{}
js_parser.go#L10809: out = exprOut{
js_parser.go#L10848: return maybeJoinWithComma(p.simplifyUnusedExpr(e.Test), e.Yes), 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#L10858: return e.Yes, exprOut{}
js_parser.go#L10871: return maybeJoinWithComma(p.simplifyUnusedExpr(e.Test), e.No), 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#L10881: return e.No, exprOut{}
js_parser.go#L10887: return p.mangleIfExpr(expr.Loc, e), exprOut{}
js_parser.go#L10896: return js_ast.Expr{Loc: expr.Loc, Data: &js_ast.EYield{Value: &e.Value}}, exprOut{}
js_parser.go#L11082: return p.lowerObjectSpread(expr.Loc, e), exprOut{}
js_parser.go#L11176: }), exprOut{}
js_parser.go#L11249: }), exprOut{}
js_parser.go#L11325: }}), exprOut{}
js_parser.go#L11371: }), exprOut{}
js_parser.go#L11384: out = exprOut{
js_parser.go#L11454: }}}, exprOut{}
js_parser.go#L11481: return expr, exprOut{}
js_parser_lower.go#L451: func (p *parser) lowerOptionalChain(expr js_ast.Expr, in exprIn, childOut exprOut) (js_ast.Expr, exprOut) {
js_parser_lower.go#L514: return valueWhenUndefined, exprOut{}
js_parser_lower.go#L527: return originalExpr, exprOut{}
js_parser_lower.go#L735: return result, exprOut{
 |
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. |