Simplify DoParseProgram
authorwingo <wingo@igalia.com>
Thu, 16 Apr 2015 12:42:43 +0000 (05:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Apr 2015 12:42:37 +0000 (12:42 +0000)
commite0913eccfbe6809a7a00af43d90aad28a430f80b
tree953d9887d28fde2874fe91e0f50f7f058412c9ee
parent05bfdd866ab174f711932d20e336aaed66d58493
Simplify DoParseProgram

DoParseProgram doesn't appear to need to receive toplevel scopes as
arguments; it can properly set the end_position of the scopes to the
scanner's position after parsing is complete.

R=marja@chromium.org
BUG=
LOG=N

Review URL: https://codereview.chromium.org/1091743002

Cr-Commit-Position: refs/heads/master@{#27880}
src/parser.cc
src/parser.h