gn /
gn /
ac8e0619edcca2aac3a39b9e27821ee8544c9f85 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-Original-Commit-Position: refs/heads/master@{#351000}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c5598930514b13c0c36992e47d8b5170730001ce
2 files changed
tree: c27a350d6d2ad60cf1e71fc15572e0a8d6158a92
- tools/