tools/gn: simplify BlockNode semantics
commit3ad7aeb3e281879b13c026581d44c53c3efbf7ef
authormdempsky <mdempsky@chromium.org>
Tue, 17 Mar 2015 22:38:02 +0000 (17 15:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 Mar 2015 22:38:51 +0000 (17 22:38 +0000)
tree78321b12af57f988b7962af01c4c356384b2e85b
parent975c24b80d75c8232b8fbb2d377da9ebdd259db1
tools/gn: simplify BlockNode semantics

Now that blocks cannot be used as statements, they no longer need to
worry about constructing implicit scopes for execution.  Instead,
execution can always occur directly in the enclosing scope, and
ExecuteBlockInScope callers can simply use Execute instead.

BUG=434519

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

Cr-Commit-Position: refs/heads/master@{#321002}
13 files changed:
tools/gn/function_foreach.cc
tools/gn/function_set_defaults.cc
tools/gn/function_toolchain.cc
tools/gn/functions.cc
tools/gn/functions_target.cc
tools/gn/import_manager.cc
tools/gn/loader.cc
tools/gn/loader_unittest.cc
tools/gn/parse_tree.cc
tools/gn/parse_tree.h
tools/gn/parser.cc
tools/gn/setup.cc
tools/gn/template.cc