1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/fixtures/go/import-graph/main.json

169 lines
2.9 KiB
JSON
Raw Normal View History

{
"modules": {
"app": {
"imports": [
{
"span": {
"start": [
3,
8
],
"end": [
3,
2018-03-09 00:01:13 +03:00
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
]
},
2018-03-09 00:01:13 +03:00
"path": "lib/Math",
"symbols": [],
2018-03-09 00:01:13 +03:00
"alias": "m"
},
{
"span": {
"start": [
6,
2018-03-09 00:01:13 +03:00
8
],
"end": [
6,
2018-03-09 00:01:13 +03:00
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": [
2018-03-09 00:01:13 +03:00
12,
1
],
"end": [
2018-03-09 00:01:13 +03:00
12,
14
]
},
"kind": "Function",
2018-03-03 02:30:51 +03:00
"name": "foo",
"module": "app"
},
{
"span": {
"start": [
2018-03-09 00:01:13 +03:00
14,
1
],
"end": [
2018-03-09 00:01:13 +03:00
19,
2
]
},
"kind": "Function",
2018-03-03 02:30:51 +03:00
"name": "main",
"module": "app"
}
],
"paths": [
"test/fixtures/go/import-graph/main.go"
],
"calls": [
{
"span": {
"start": [
2018-03-09 00:01:13 +03:00
15,
3
],
"end": [
2018-03-09 00:01:13 +03:00
15,
8
]
},
"symbol": "foo",
"targets": []
2018-03-09 00:01:13 +03:00
},
{
"span": {
"start": [
17,
3
],
"end": [
17,
10
]
},
"symbol": "Sin",
"targets": [
"m"
]
},
{
"span": {
"start": [
18,
3
],
"end": [
18,
13
]
},
"symbol": "Sin",
"targets": [
"Math"
]
}
]
}
}
}