pulumi/pkg
CyrusNajmabadi e7c0e4cdaa
Make many fixes to closure serialization (#944)
Make many fixes to closure serialization

Primary things that i've done as part of this change:

    Added support for cyclic objects.
    Properly serialize objects that are shared across different function. previously you would get multiple copies, now you properly reference the same copy.
    Remove the usages of 'hashes' for functions. Because we track identity of objects, we no longer need them.
    Serialize properties of functions (if they have any).
    Handle Objects/Functions with different __proto__s than normal. i.e. classes/constructors. but also anything the user may have done themselves to the object.
    Handle generator functions.
    Handle functions with 'computed' names.
    Handle functions with 'symbol' names.
    Handle serializing Promises as Promises.
    Removed the dual Closure/AsyncClosure tree. One existed solely so we could have a tree without promises (for use in testing maybe?). Because this all exists in a part of our codebase that is entirely async, it's fine to have promises in the tree, and to await them when serializing the Closure to a string.
    Handle serializing class-constructors and methods. Including properly handling 'super' calls.
2018-03-01 00:32:01 -08:00
..
apitype Add a package apitype comment 2018-02-28 13:24:38 -08:00
backend Eliminate type redundancy 2018-02-28 12:44:55 -08:00
diag Remove pkg/compiler/errors 2018-02-28 17:41:04 -08:00
encoding Use go-yaml directly 2017-10-20 14:01:37 -07:00
engine Make many fixes to closure serialization (#944) 2018-03-01 00:32:01 -08:00
graph Spruce up the stack graph command: 2018-02-22 17:31:45 -08:00
operations Eliminate type redundancy 2018-02-28 12:44:55 -08:00
resource Remove pkg/resource/idl 2018-02-28 17:41:04 -08:00
testing Eliminate type redundancy 2018-02-28 12:44:55 -08:00
tokens Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
tools Add a commentChars parameter to EmitHeaderWarning (#827) 2018-01-22 09:32:37 -08:00
util Add a package apitype comment 2018-02-28 13:24:38 -08:00
version Add a manifest to checkpoint files (#630) 2017-12-01 13:50:32 -08:00
workspace Check plugin cache first; make version mismatch a warning 2018-02-26 11:39:50 -08:00