发明名称 METHOD FOR MODELING SOURCE CODE HAVING CODE SEGMENTS THAT LACK SOURCE LOCATION
摘要 A system and method for modeling code segments that do not have a location is disclosed. Source code may be indexed and modeled in a data graph with nodes representing code elements and edges representing relationships between nodes. However, some code elements may be hidden or implicit and therefore may lack location information. In these cases, code figments are created and represented as nodes in the graph. Figment nodes may be specially designated so that the figment nodes may be easily distinguished from real source code nodes. The graph is then updated to include location information for the code figments in the nodes that interact with the hidden or implicit code. The data graph may then be provided to a user or as a service to be used by coding tools.
申请公布号 US2015324194(A1) 申请公布日期 2015.11.12
申请号 US201514803791 申请日期 2015.07.20
申请人 Google Inc. 发明人 van GOGH Jeffrey;YEGGE Stephen F.;FROMBERGER Michael Joseph;SHALI Amin;WEST Gregory Scott;DENNETT James Anthony;ESPEHOLT Lasse;BRAUNSTEIN Ronald Aaron
分类号 G06F9/44;G06F17/30 主分类号 G06F9/44
代理机构 代理人
主权项 1. A method for modeling source code comprising: receiving source code including code segments that do not have a source location; indexing the received source code; creating a data model from the indexed source code that includes a plurality of nodes representing code elements and a plurality of edges for relationships between elements; determining the source location to be associated with each node; responsive to recognizing one of the code segments as a hidden or implicit code segment, creating a figment representation for the code segment, where the figment representation's content models code behavior based on edge relationship data included in the data model; andassigning the created figment as the source location associated with the code segment's node.
地址 Mountain View CA US