James Price b487c71e59 writer: Add parentheses for array accesses
The LHS should be wrapped in parentheses if it has lower precedence
than the access. This fixes issues with pointer dereferences followed
by array accesses, where we were previously generating *a[i].

Change-Id: I639f94b642f32119350b0a0d23f4ff2a5d6c3c25
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/52843
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-01 12:18:10 +00:00
..
2021-04-27 18:01:28 +00:00
2021-05-19 16:11:04 +00:00
2021-05-14 17:51:13 +00:00
2021-04-30 21:27:02 +00:00
2021-05-19 13:25:08 +00:00
2021-05-26 15:12:12 +00:00
2021-03-09 13:52:18 +00:00
2021-03-09 11:11:17 +00:00
2021-03-17 04:55:33 +00:00
2021-05-29 18:19:38 +00:00
2021-05-20 15:10:48 +00:00
2021-05-20 15:10:48 +00:00
2021-05-06 16:04:03 +00:00
2021-03-09 11:11:17 +00:00
2021-03-09 11:11:17 +00:00