pulumi/pkg/codegen/nodejs
Pat Gavlin 69ba47cff2
[codegen/*] Add support for resource options. (#4925)
The PCL binder has supported resource options for some time, but these
options haven't been used or processed by the various code generators.
These options--particularly the parent and provider options0--are
critical for import codegen. These changes implement the basic set of
options, and add a note about fleshing out the rest as necessary.

One component of these changes is a new rewriter that rewrites property
references into property paths that are understood by the Pulumi engine.
This rewriter is used to preprocess the contents of the `ignoreChanges`
resource option.

These changes also hack around a weakness in the HCL2 type system:
In Go, references to resources should be typed as `hcl2.ResourceType`.
Unfortunately, this breaks the existing collection semantics associated
with resources. Because of this, the Go code generator does not have
enough information to know that it should generate a `[]pulumi.Resource`
for lists of resources. These changes hack around that limitation using
a Go-specific opaque type and some hardcoded comparisons in
`argumentTypeName`.

Fixes #4923.
2020-06-29 16:33:52 -07:00
..
doc.go [codegen/nodejs] SDK generator fixes. (#4618) 2020-05-13 10:55:37 -07:00
doc_test.go Clean up the language-specific schema APIs. (#4454) 2020-04-20 16:36:05 -07:00
gen.go [codegen] Use nullish coalescing for provider defaults on k8s (#4841) 2020-06-22 09:38:20 -06:00
gen_intrinsics.go Clean up the language-specific schema APIs. (#4454) 2020-04-20 16:36:05 -07:00
gen_program.go [codegen/*] Add support for resource options. (#4925) 2020-06-29 16:33:52 -07:00
gen_program_expressions.go [codegen/*] Add support for resource options. (#4925) 2020-06-29 16:33:52 -07:00
gen_program_lower.go [codegen/nodejs] Await invokes in async contexts. (#4598) 2020-05-11 10:21:56 -07:00
gen_program_test.go Turn program gen NYIs into diagnostic errors (#4794) 2020-06-10 10:21:53 -07:00
importer.go [codegen/schema] Support default union types. (#4746) 2020-06-02 18:15:21 -07:00
utilities.go Initial support for C# program gen (#4611) 2020-05-19 10:18:38 +02:00