发明授权
- 专利标题: Computer code transformations to create synthetic global scopes
- 专利标题(中): 计算机代码转换创建合成全局范围
-
申请号: US13432477申请日: 2012-03-28
-
公开(公告)号: US09015682B1公开(公告)日: 2015-04-21
- 发明人: John A. Hjelmstad , Malte Ubl
- 申请人: John A. Hjelmstad , Malte Ubl
- 申请人地址: US CA Mountain View
- 专利权人: Google Inc.
- 当前专利权人: Google Inc.
- 当前专利权人地址: US CA Mountain View
- 代理机构: McDermott Will & Emery LLP
- 主分类号: G06F9/44
- IPC分类号: G06F9/44 ; G06F9/54
摘要:
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.
信息查询