2. The system of claim 1 , wherein the one or more processors are configured to: provide the proxy object as an argument to the function; and perform the global dynamic analysis by using the getter trap, which is included in the proxy object, to extract the information regarding the one or more properties that are requested with respect to the object literal from the code.
1. A system to complete a code snippet to define an object literal, the system comprising: memory; and one or more processors coupled to the memory, the one or more processors configured to: provide a proxy object to a function that is included in code; perform global dynamic analysis by using a getter trap that is included in the proxy object to extract information regarding one or more properties of the object literal from the code, which includes the function; and generate a recommendation that recommends content for completion of the code snippet to define the object literal based at least in part on the information, the content identifying the one or more properties of the object literal.