1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +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,
2018-03-12 23:53:06 +03:00
2
],
"end": [
2018-03-09 00:01:13 +03:00
15,
2018-03-12 23:53:06 +03:00
7
]
},
"symbol": "foo",
"targets": []
2018-03-09 00:01:13 +03:00
},
{
"span": {
"start": [
17,
2018-03-12 23:53:06 +03:00
2
2018-03-09 00:01:13 +03:00
],
"end": [
17,
2018-03-12 23:53:06 +03:00
9
2018-03-09 00:01:13 +03:00
]
},
"symbol": "Sin",
"targets": [
"m"
]
},
{
"span": {
"start": [
18,
2018-03-12 23:53:06 +03:00
2
2018-03-09 00:01:13 +03:00
],
"end": [
18,
2018-03-12 23:53:06 +03:00
12
2018-03-09 00:01:13 +03:00
]
},
"symbol": "Sin",
"targets": [
"Math"
]
}
]
}
}
}