github.com/evanw/esbuild/internal/js_ast.SIf.Yes (field)

36 uses

	github.com/evanw/esbuild/internal/js_ast (current package)
		js_ast.go#L1035: 	Yes  Stmt

	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#L6442: 		return shouldKeepStmtInDeadControlFlow(s.Yes) || (s.No != nil && shouldKeepStmtInDeadControlFlow(*s.No))
		js_parser.go#L6794: 			if isJumpStatement(s.Yes.Data) {
		js_parser.go#L6800: 					if prevS, ok := prevStmt.Data.(*js_ast.SIf); ok && prevS.No == nil && jumpStmtsLookTheSame(prevS.Yes.Data, s.Yes.Data) {
		js_parser.go#L6813: 					if continueS, ok := s.Yes.Data.(*js_ast.SContinue); ok && continueS.Label == nil {
		js_parser.go#L6821: 					if returnS, ok := s.Yes.Data.(*js_ast.SReturn); ok && returnS.Value == nil {
		js_parser.go#L6856: 						bodyLoc := s.Yes.Loc
		js_parser.go#L6862: 							Yes:  stmtsToSingleStmt(bodyLoc, body),
		js_parser.go#L6875: 						if !ok || !isJumpStatement(s.Yes.Data) || s.No == nil {
		js_parser.go#L7006: 					prevReturn, ok := prevS.Yes.Data.(*js_ast.SReturn)
		js_parser.go#L7016: 						left = &js_ast.Expr{Loc: prevS.Yes.Loc, Data: &js_ast.EUndefined{}}
		js_parser.go#L7079: 					prevThrow, ok := prevS.Yes.Data.(*js_ast.SThrow)
		js_parser.go#L7570: 		if breakS, ok := ifS.Yes.Data.(*js_ast.SBreak); ok && breakS.Label == nil {
		js_parser.go#L7595: 				s.Body = dropFirstStatement(s.Body, &ifS.Yes)
		js_parser.go#L7636: 				return appendIfBodyPreservingScope(stmts, s.Yes)
		js_parser.go#L7642: 			if !shouldKeepStmtInDeadControlFlow(s.Yes) {
		js_parser.go#L7660: 	if yes, ok := s.Yes.Data.(*js_ast.SExpr); ok {
		js_parser.go#L7680: 	} else if _, ok := s.Yes.Data.(*js_ast.SEmpty); ok {
		js_parser.go#L7706: 				s.Yes = *s.No
		js_parser.go#L7711: 				s.Yes = *s.No
		js_parser.go#L7722: 				s.Yes, *s.No = *s.No, s.Yes
		js_parser.go#L7726: 			if s2, ok := s.Yes.Data.(*js_ast.SIf); ok && s2.No == nil {
		js_parser.go#L7729: 				s.Yes = s2.Yes
		js_parser.go#L8332: 			s.Yes = p.visitSingleStmt(s.Yes, stmtsNormal)
		js_parser.go#L8335: 			s.Yes = p.visitSingleStmt(s.Yes, stmtsNormal)

	github.com/evanw/esbuild/internal/js_printer
		js_printer.go#L2409: 	if yes, ok := s.Yes.Data.(*js_ast.SBlock); ok {
		js_printer.go#L2411: 		p.printBlock(s.Yes.Loc, yes.Stmts)
		js_printer.go#L2418: 	} else if wrapToAvoidAmbiguousElse(s.Yes.Data) {
		js_printer.go#L2424: 		p.printStmt(s.Yes)
		js_printer.go#L2439: 		p.printStmt(s.Yes)