mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
169 lines
2.9 KiB
JSON
169 lines
2.9 KiB
JSON
{
|
|
"modules": {
|
|
"app": {
|
|
"imports": [
|
|
{
|
|
"span": {
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
19
|
|
]
|
|
},
|
|
"path": "lib/Foo",
|
|
"symbols": [],
|
|
"alias": ""
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
},
|
|
"path": "lib/Bar",
|
|
"symbols": [],
|
|
"alias": ""
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
5,
|
|
8
|
|
],
|
|
"end": [
|
|
5,
|
|
20
|
|
]
|
|
},
|
|
"path": "lib/Math",
|
|
"symbols": [],
|
|
"alias": "m"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
18
|
|
]
|
|
},
|
|
"path": "lib/Math",
|
|
"symbols": [],
|
|
"alias": "Math"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
9,
|
|
2
|
|
],
|
|
"end": [
|
|
9,
|
|
12
|
|
]
|
|
},
|
|
"path": "net/http",
|
|
"symbols": [],
|
|
"alias": "http"
|
|
}
|
|
],
|
|
"name": "app",
|
|
"language": "Go",
|
|
"declarations": [
|
|
{
|
|
"span": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
14
|
|
]
|
|
},
|
|
"kind": "Function",
|
|
"name": "foo",
|
|
"module": "app"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
2
|
|
]
|
|
},
|
|
"kind": "Function",
|
|
"name": "main",
|
|
"module": "app"
|
|
}
|
|
],
|
|
"paths": [
|
|
"test/fixtures/go/import-graph/main.go"
|
|
],
|
|
"calls": [
|
|
{
|
|
"span": {
|
|
"start": [
|
|
15,
|
|
2
|
|
],
|
|
"end": [
|
|
15,
|
|
7
|
|
]
|
|
},
|
|
"symbol": "foo",
|
|
"targets": []
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
17,
|
|
2
|
|
],
|
|
"end": [
|
|
17,
|
|
9
|
|
]
|
|
},
|
|
"symbol": "Sin",
|
|
"targets": [
|
|
"m"
|
|
]
|
|
},
|
|
{
|
|
"span": {
|
|
"start": [
|
|
18,
|
|
2
|
|
],
|
|
"end": [
|
|
18,
|
|
12
|
|
]
|
|
},
|
|
"symbol": "Sin",
|
|
"targets": [
|
|
"Math"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|