github.com/evanw/esbuild/internal/js_ast.SIf.Test (field)
52 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1034: Test Expr
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L5441: return js_ast.Stmt{Loc: loc, Data: &js_ast.SIf{Test: test, Yes: yes, No: no}}
js_parser.go#L6789: s.Test = js_ast.JoinWithComma(prevS.Value, s.Test)
js_parser.go#L6805: s.Test = js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpLogicalOr, prevS.Test, s.Test)
js_parser.go#L6861: Test: js_ast.Not(s.Test),
js_parser.go#L7024: if not, ok := prevS.Test.Data.(*js_ast.EUnary); ok && not.Op == js_ast.UnOpNot {
js_parser.go#L7025: prevS.Test = not.Value
js_parser.go#L7032: lastValue := js_ast.JoinWithComma(prevS.Test, *left)
js_parser.go#L7035: if comma, ok := prevS.Test.Data.(*js_ast.EBinary); ok && comma.Op == js_ast.BinOpComma {
js_parser.go#L7041: value := p.mangleIfExpr(prevS.Test.Loc, &js_ast.EIf{Test: prevS.Test, Yes: *left, No: *right})
js_parser.go#L7088: if not, ok := prevS.Test.Data.(*js_ast.EUnary); ok && not.Op == js_ast.UnOpNot {
js_parser.go#L7089: prevS.Test = not.Value
js_parser.go#L7094: if comma, ok := prevS.Test.Data.(*js_ast.EBinary); ok && comma.Op == js_ast.BinOpComma {
js_parser.go#L7099: lastThrow = &js_ast.SThrow{Value: p.mangleIfExpr(prevS.Test.Loc, &js_ast.EIf{Test: prevS.Test, Yes: left, No: right})}
js_parser.go#L7126: expr = &s.Test
js_parser.go#L7572: if unary, ok := ifS.Test.Data.(*js_ast.EUnary); ok && unary.Op == js_ast.UnOpNot {
js_parser.go#L7575: not = js_ast.Not(ifS.Test)
js_parser.go#L7591: s.Test = &js_ast.Expr{Loc: s.Test.Loc, Data: &js_ast.EBinary{Op: js_ast.BinOpLogicalAnd, Left: *s.Test, Right: ifS.Test}}
js_parser.go#L7593: s.Test = &ifS.Test
js_parser.go#L7625: if boolean, sideEffects, ok := toBooleanWithSideEffects(s.Test.Data); ok {
js_parser.go#L7632: if test := p.simplifyUnusedExpr(s.Test); test.Data != nil {
js_parser.go#L7633: stmts = append(stmts, js_ast.Stmt{Loc: s.Test.Loc, Data: &js_ast.SExpr{Value: test}})
js_parser.go#L7646: if test := p.simplifyUnusedExpr(s.Test); test.Data != nil {
js_parser.go#L7647: stmts = append(stmts, js_ast.Stmt{Loc: s.Test.Loc, Data: &js_ast.SExpr{Value: test}})
js_parser.go#L7663: if not, ok := s.Test.Data.(*js_ast.EUnary); ok && not.Op == js_ast.UnOpNot {
js_parser.go#L7670: Value: js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpLogicalAnd, s.Test, yes.Value)}})
js_parser.go#L7675: Test: s.Test,
js_parser.go#L7684: if p.exprCanBeRemovedIfUnused(s.Test) {
js_parser.go#L7689: return append(stmts, js_ast.Stmt{Loc: loc, Data: &js_ast.SExpr{Value: s.Test}})
js_parser.go#L7692: if not, ok := s.Test.Data.(*js_ast.EUnary); ok && not.Op == js_ast.UnOpNot {
js_parser.go#L7699: Value: js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpLogicalOr, s.Test, no.Value)}})
js_parser.go#L7703: if not, ok := s.Test.Data.(*js_ast.EUnary); ok && not.Op == js_ast.UnOpNot {
js_parser.go#L7705: s.Test = not.Value
js_parser.go#L7710: s.Test = js_ast.Not(s.Test)
js_parser.go#L7719: if not, ok := s.Test.Data.(*js_ast.EUnary); ok && not.Op == js_ast.UnOpNot {
js_parser.go#L7721: s.Test = not.Value
js_parser.go#L7728: s.Test = js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpLogicalAnd, s.Test, s2.Test)
js_parser.go#L8319: s.Test = p.visitExpr(s.Test)
js_parser.go#L8322: s.Test = p.simplifyBooleanExpr(s.Test)
js_parser.go#L8326: boolean, _, ok := toBooleanWithSideEffects(s.Test.Data)
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2406: p.printExpr(s.Test, js_ast.LLowest, 0)
 |
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. |