github.com/evanw/esbuild/internal/js_ast.EIf.Yes (field)
62 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L620: Yes Expr
js_ast.go#L785: return IsBooleanValue(e.Yes) && IsBooleanValue(e.No)
js_ast.go#L814: return IsNumericValue(e.Yes) && IsNumericValue(e.No)
js_ast.go#L853: return IsStringValue(e.Yes) && IsStringValue(e.No)
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L879: return isPrimitiveWithSideEffects(e.Yes.Data) && isPrimitiveWithSideEffects(e.No.Data)
js_parser.go#L939: valuesLookTheSame(a.Yes.Data, b.Yes.Data) && valuesLookTheSame(a.No.Data, b.No.Data) {
js_parser.go#L3556: left = js_ast.Expr{Loc: left.Loc, Data: &js_ast.EIf{Test: left, Yes: yes, No: no}}
js_parser.go#L7037: value := js_ast.JoinWithComma(comma.Left, p.mangleIfExpr(comma.Right.Loc, &js_ast.EIf{Test: comma.Right, Yes: *left, No: *right}))
js_parser.go#L7041: value := p.mangleIfExpr(prevS.Test.Loc, &js_ast.EIf{Test: prevS.Test, Yes: *left, No: *right})
js_parser.go#L7096: lastThrow = &js_ast.SThrow{Value: js_ast.JoinWithComma(comma.Left, p.mangleIfExpr(comma.Right.Loc, &js_ast.EIf{Test: comma.Right, Yes: left, No: right}))}
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#L7275: yesValue, yesStatus := p.substituteSingleUseSymbolInExpr(e.Yes, ref, replacement, replacementCanBeRemoved)
js_parser.go#L7277: e.Yes = yesValue
js_parser.go#L7676: Yes: yes.Value,
js_parser.go#L7742: Yes: e.Yes,
js_parser.go#L7750: e.Yes, e.No = e.No, e.Yes
js_parser.go#L7753: if valuesLookTheSame(e.Yes.Data, e.No.Data) {
js_parser.go#L7756: return e.Yes
js_parser.go#L7760: return js_ast.JoinWithComma(e.Test, e.Yes)
js_parser.go#L7765: if yes, ok := e.Yes.Data.(*js_ast.EBoolean); ok {
js_parser.go#L7778: if id2, ok := e.Yes.Data.(*js_ast.EIdentifier); ok && id.Ref == id2.Ref {
js_parser.go#L7784: return js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpLogicalAnd, e.Test, e.Yes)
js_parser.go#L7789: if yesIf, ok := e.Yes.Data.(*js_ast.EIf); ok && valuesLookTheSame(yesIf.No.Data, e.No.Data) {
js_parser.go#L7791: e.Yes = yesIf.Yes
js_parser.go#L7796: if noIf, ok := e.No.Data.(*js_ast.EIf); ok && valuesLookTheSame(e.Yes.Data, noIf.Yes.Data) {
js_parser.go#L7803: if comma, ok := e.No.Data.(*js_ast.EBinary); ok && comma.Op == js_ast.BinOpComma && valuesLookTheSame(e.Yes.Data, comma.Right.Data) {
js_parser.go#L7811: if comma, ok := e.Yes.Data.(*js_ast.EBinary); ok && comma.Op == js_ast.BinOpComma && valuesLookTheSame(comma.Right.Data, e.No.Data) {
js_parser.go#L7819: if binary, ok := e.Yes.Data.(*js_ast.EBinary); ok && binary.Op == js_ast.BinOpLogicalOr &&
js_parser.go#L7830: valuesLookTheSame(e.Yes.Data, binary.Right.Data) {
js_parser.go#L7839: if y, ok := e.Yes.Data.(*js_ast.ECall); ok && len(y.Args) > 0 {
js_parser.go#L7860: e.Yes = yesSpread.Value
js_parser.go#L7868: e.Yes = y.Args[0]
js_parser.go#L7885: return js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpNullishCoalescing, binary.Left, e.Yes)
js_parser.go#L7890: return js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpNullishCoalescing, binary.Right, e.Yes)
js_parser.go#L7895: if _, ok := binary.Right.Data.(*js_ast.ENull); ok && p.exprCanBeRemovedIfUnused(binary.Left) && valuesLookTheSame(binary.Left.Data, e.Yes.Data) {
js_parser.go#L7900: if _, ok := binary.Left.Data.(*js_ast.ENull); ok && p.exprCanBeRemovedIfUnused(binary.Right) && valuesLookTheSame(binary.Right.Data, e.Yes.Data) {
js_parser.go#L8797: e.Yes = p.maybeTransposeIfExprChain(e.Yes, visit)
js_parser.go#L10833: e.Yes = p.visitExpr(e.Yes)
js_parser.go#L10839: e.Yes = p.visitExpr(e.Yes)
js_parser.go#L10848: return maybeJoinWithComma(p.simplifyUnusedExpr(e.Test), e.Yes), exprOut{}
js_parser.go#L10854: if isCallTarget && hasValueForThisInCall(e.Yes) {
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#L10864: e.Yes = p.visitExpr(e.Yes)
js_parser.go#L12322: return p.exprCanBeRemovedIfUnused(e.Test) && p.exprCanBeRemovedIfUnused(e.Yes) && p.exprCanBeRemovedIfUnused(e.No)
js_parser.go#L12501: e.Yes = p.simplifyUnusedExpr(e.Yes)
js_parser.go#L12505: if e.Yes.Data == nil && e.No.Data == nil {
js_parser.go#L12510: if e.Yes.Data == nil {
js_parser.go#L12516: return js_ast.JoinWithLeftAssociativeOp(js_ast.BinOpLogicalAnd, e.Test, e.Yes)
js_parser_lower.go#L723: Yes: valueWhenUndefined,
js_parser_lower.go#L873: Yes: leftFunc(),
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L1629: p.printExpr(e.Yes, js_ast.LYield, 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. |