GaloisInc / language-rust

Parser and pretty-printer for the Rust language
https://hackage.haskell.org/package/language-rust
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Parenthesize selectors in calls #1

Open yav opened 3 months ago

yav commented 3 months ago

FieldAccess in the function position of a call should be parentesized, so that we get (f.x)(y) (call the closure stored in field x) instead of f.x(y) (call method x on f)