GN: Don't allow nested things inside template invocations.

Previously we would allow this because "component" is a template:
  component("foo") {
    config("bar") {
    }
  }
This patch makes this construct illegal. Allowing this leads to weird errors because the template invocation will have default configs applied to it, and the inner config will pick those up and duplicate all of the target's configs inside of "bar".

Also removes unused "Type" enum which was never used.

BUG=536290

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

Cr-Commit-Position: refs/heads/master@{#351000}
2 files changed