Move Parser::Declare to Scope.
Parser::Declare has a lot of Scope-related logic inside; especially it does Lookup in Scope. Scope should be the class which knows how to declare variables in different kinds of Scopes, not Parser. BUG= Review-Url: https://codereview.chromium.org/2280033002 Cr-Commit-Position: refs/heads/master@{#38979}
Showing
Please
register
or
sign in
to comment