Invention Grant
- Patent Title: Computer code transformations to create synthetic global scopes
- Patent Title (中): 计算机代码转换创建合成全局范围
-
Application No.: US13432477Application Date: 2012-03-28
-
Publication No.: US09015682B1Publication Date: 2015-04-21
- Inventor: John A. Hjelmstad , Malte Ubl
- Applicant: John A. Hjelmstad , Malte Ubl
- Applicant Address: US CA Mountain View
- Assignee: Google Inc.
- Current Assignee: Google Inc.
- Current Assignee Address: US CA Mountain View
- Agency: McDermott Will & Emery LLP
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/54

Abstract:
Methods and systems for processing computer code modules in order to avoid polluting the global namespace. According to one embodiment, the system or method comprises a server that receives a request for an additional computer code module to be added to the namespace. Prior to delivering the module, the server processes the module by identifying all references to global symbols that are not to be explicitly exported to a global scope and moving the identified symbols to a synthetic namespace prior. The server further wraps the processed module in a function that receives the synthetic global scope as a parameter, and delivers the wrapped module to the requesting namespace.
Information query