pulumi/pkg/ast
joeduffy d63a09ea2f Bind properties that refer to types
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.
2016-12-03 11:14:06 -08:00
..
names.go Add some property binding tests 2016-12-02 14:33:22 -08:00
names_test.go Implement dependency versions 2016-11-22 16:58:23 -08:00
refs.go Finish dependency and type binding 2016-11-23 07:26:45 -08:00
refs_test.go Preserve blank ""s in RefParts 2016-11-22 17:24:49 -08:00
stable.go Bind properties that refer to types 2016-12-03 11:14:06 -08:00
types.go Bind properties that refer to types 2016-12-03 11:14:06 -08:00
versions.go Annotate a bunch of TODOs with work item numbers 2016-11-23 12:30:02 -08:00
versions_test.go Implement dependency versions 2016-11-22 16:58:23 -08:00