pulumi/pkg/codegen/dotnet
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/docs] Use the C# namespaces override map for links. (#4616) 2020-05-13 09:32:40 -07:00
doc_test.go Clean up the language-specific schema APIs. (#4454) 2020-04-20 16:36:05 -07:00
gen.go [codegen/docs] Reimplement example extraction. (#4851) 2020-06-18 12:32:15 -07:00
gen_intrinsics.go Initial support for C# program gen (#4611) 2020-05-19 10:18:38 +02: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_test.go Turn program gen NYIs into diagnostic errors (#4794) 2020-06-10 10:21:53 -07:00
importer.go Introduce k8s compatibility mode to C# codegen (#4544) 2020-05-19 11:41:06 +02:00
templates.go Clean up the language-specific schema APIs. (#4454) 2020-04-20 16:36:05 -07:00
utilities.go Small bug fixes in C# codegen (#4702) 2020-05-26 19:12:56 +02:00