d63a09ea2f
A stack property can refer to other stack types. For example: properties: gateway: type: aws/ec2/internetGateway ... In such cases, we need to validate the property during binding, in addition to binding it to an actual type so that we can later validate callers who are constructing instances of this stack and providing property values that we must typecheck. Note that this binding is subtly different than existing stack type binding. All the name validation, resolution, and so forth are the same. However, notice that in this case we are not actually supplying any property setters. That is, internetGateway is not an "expanded" type, in that we have not processed any of its templates. An analogy might help: this is sort of akin referring to an uninstantiated generic type in a traditional programming language, versus its instantiated form. In this case, certain properties aren't available to us, however we can still use it for type identity, etc. |
||
---|---|---|
.. | ||
backends | ||
core | ||
predef | ||
testdata | ||
binder.go | ||
binder_test.go | ||
common_test.go | ||
compiler.go | ||
compiler_be.go | ||
compiler_fe.go | ||
compiler_sema.go | ||
compiler_test.go | ||
context.go | ||
opts.go | ||
parser.go | ||
parsetree.go | ||
symbols.go | ||
templates.go |