- Notifications
You must be signed in to change notification settings - Fork5
Commitabb1646
committed
Fix unexpected side-effects of operator_precedence_warning.
The implementation of that feature involves injecting nodes into theraw parsetree where explicit parentheses appear. Various places inparse_expr.c that test to see "is this child node of type Foo" need tolook through such nodes, else we'll get different behavior whenoperator_precedence_warning is on than when it is off. Note that we onlyneed to handle this when testing untransformed child nodes, since theAEXPR_PAREN nodes will be gone anyway after transformExprRecurse.Per report from Scott Ribe and additional code-reading. Back-patchto 9.5 where this feature was added.Report: <ED37E303-1B0A-4CD8-8E1E-B9C4C2DD9A17@elevated-dev.com>1 parent80f66a9 commitabb1646
1 file changed
+29
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
860 | 868 | | |
861 | 869 | | |
862 | 870 | | |
| |||
1903 | 1911 | | |
1904 | 1912 | | |
1905 | 1913 | | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
1906 | 1919 | | |
1907 | 1920 | | |
1908 | 1921 | | |
| |||
2453 | 2466 | | |
2454 | 2467 | | |
2455 | 2468 | | |
2456 | | - | |
| 2469 | + | |
2457 | 2470 | | |
2458 | 2471 | | |
2459 | 2472 | | |
2460 | 2473 | | |
2461 | 2474 | | |
2462 | 2475 | | |
| 2476 | + | |
2463 | 2477 | | |
2464 | 2478 | | |
2465 | 2479 | | |
2466 | 2480 | | |
2467 | 2481 | | |
2468 | 2482 | | |
| 2483 | + | |
2469 | 2484 | | |
2470 | 2485 | | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
2471 | 2495 | | |
2472 | 2496 | | |
2473 | 2497 | | |
2474 | 2498 | | |
2475 | 2499 | | |
2476 | 2500 | | |
2477 | 2501 | | |
2478 | | - | |
| 2502 | + | |
2479 | 2503 | | |
2480 | 2504 | | |
2481 | 2505 | | |
| |||
2493 | 2517 | | |
2494 | 2518 | | |
2495 | 2519 | | |
2496 | | - | |
| 2520 | + | |
2497 | 2521 | | |
2498 | 2522 | | |
2499 | 2523 | | |
2500 | 2524 | | |
2501 | 2525 | | |
2502 | | - | |
| 2526 | + | |
2503 | 2527 | | |
2504 | 2528 | | |
2505 | | - | |
| 2529 | + | |
2506 | 2530 | | |
2507 | 2531 | | |
2508 | 2532 | | |
| |||
0 commit comments
Comments
(0)