|
楼主 |
发表于 2021-4-15 19:13:30
|
显示全部楼层
来自 中国河北衡水
如果用Json文件描述这张图的存储,就可以得到如下结果:
1、{ id: 1, type: "vertex", label: "document", uri: "file:///abc/sample.java", languageId: "java" }
2、{ id: 2, type: "vertex", label: "range", start: { line: 0, character: 13}, end: { line: 0, character: 18 } }
3、{ id: 3, type: "edge", label: "contains", outV: 1, inVs: [2] }
4、{ id: 4, type: "vertex", label: "hoverResult", result: {["this is a sample class"]} }
5、{ id: 5, type: "edge", label: "textDocument/hover", outV: 2, inV: 4 }
实际一个工程的LSIF图会非常复杂,经常会包含几十万个节点。 |
|