DescriptionGN: 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
Committed: https://crrev.com/c5598930514b13c0c36992e47d8b5170730001ce
Cr-Commit-Position: refs/heads/master@{#351000}
Patch Set 1 #Patch Set 2 : #
Total comments: 1
Messages
Total messages: 11 (4 generated)
|