parser: Move a bunch of helper declarations into local scopes
parser: Move a bunch of helper declarations into local scopes

SalesforceEng/runway-browser,salesforce/runway-browser,SalesforceEng/runway-browser