Description[cleanup] Make control flow in ParsePrimaryExpression more consistent
The previous code had a mix of breaks, early returns, and switch/case/if
with fallthrough. Now the pattern is to either return for known errors
or break to the bottom of the switch for unhandled tokens.
Also cleaned up random other stuff in the function: removed unnecessary
local vars, shortened position-fetching calls.
Committed: https://crrev.com/1447f7434410d9f2c21c1e3880ea0607aaf67a63
Cr-Commit-Position: refs/heads/master@{#31843}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|