pulumi/pkg/codegen/hcl2/model
Zaid Ajaj 54e0bba6ff
[go/conformance] Fix l2-resource-primitives test (#17332)
### Description

This PR fixes the l2-resource-primitives conformance test in Go. The
problem was that expressions of the form `UnaryOperationExpr(Negate,
NumberExpr(N))` didn't get _lifted_ properly: we emitted `-N` instead of
`pulumi.Float64(-N)`.

The solution here is to rewrite the expression first from
`UnaryOperationExpr(Negate, NumberExpr(N))` into `NumberExpr(-N)` and
only then lift it like any other number.
2024-09-26 05:15:38 +00:00
..
format all: Assert => Assertf 2023-03-03 14:37:43 -08:00
pretty Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
attribute.go Do not panic when PCL attribute type or PCL resource variable type isn't fully bound 2023-04-12 18:19:57 +02:00
binder_expression.go [go/conformance] Fix l2-resource-primitives test (#17332) 2024-09-26 05:15:38 +00:00
binder_expression_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
block.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
body.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
diagnostics.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
expression.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
functions.go Initial implementation of simplified invokes for dotnet and nodejs 2023-01-11 14:17:14 -08:00
print_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
printer.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
scope.go chore: fix some function names (#17128) 2024-09-03 08:57:30 +00:00
spec.md Add an HCL2 static typechecker and semantic model. (#4087) 2020-03-18 09:28:57 -07:00
traversable.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
type.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_collection.go chore: fix some function names (#17128) 2024-09-03 08:57:30 +00:00
type_const.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
type_enum.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_eventuals.go [program-gen] Fix stack overflow when binding invoke that resolves to promise (#15463) 2024-02-20 15:49:08 +00:00
type_list.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_map.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_none.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_object.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
type_opaque.go turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
type_opaque_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
type_output.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_promise.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_scope.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
type_set.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_test.go Allow case insensitive prop typecheck on traversal 2022-11-08 09:08:12 -08:00
type_tuple.go Fix stack overflow panic when pretty printing recursive types 2023-05-11 16:28:16 +02:00
type_union.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
type_union_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
utilities.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
visitor.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00