1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/fixtures/python/import-graph/main.json

129 lines
2.6 KiB
JSON
Raw Normal View History

{
"modules": {
"main": {
"imports": [],
"name": "main",
"language": "Python",
"declarations": [{
"span": {
"start": [11, 1],
"end": [13, 1]
},
"kind": "Function",
"name": "print_cwd",
"module": "main"
}, {
"span": {
"start": [14, 1],
"end": [17, 1]
},
"kind": "Function",
"name": "create_array",
"module": "main"
}, {
"span": {
"start": [18, 1],
"end": [21, 1]
},
"kind": "Function",
"name": "sum_array",
"module": "main"
}, {
"span": {
"start": [22, 1],
"end": [24, 1]
},
"kind": "Function",
"name": "sum_array2",
"module": "main"
}],
"paths": ["test/fixtures/python/import-graph/main.py"],
"calls": [{
"span": {
"start": [12, 5],
"end": [12, 23]
},
"symbol": "print",
"targets": []
}, {
"span": {
"start": [12, 11],
"end": [12, 22]
},
"symbol": "os.getcwd",
"targets": []
}, {
"span": {
"start": [15, 9],
"end": [15, 31]
},
"symbol": "np.array",
"targets": []
}, {
"span": {
"start": [19, 13],
"end": [19, 20]
},
"symbol": "x.sum",
"targets": []
}, {
"span": {
"start": [23, 12],
"end": [23, 19]
},
"symbol": "x.sum",
"targets": []
}, {
"span": {
"start": [26, 5],
"end": [26, 45]
},
"symbol": "print",
"targets": []
}, {
"span": {
"start": [27, 5],
"end": [27, 16]
},
"symbol": "print_cwd",
"targets": []
}, {
"span": {
"start": [28, 9],
"end": [28, 23]
},
"symbol": "create_array",
"targets": []
}, {
"span": {
"start": [29, 13],
"end": [29, 25]
},
"symbol": "sum_array",
"targets": []
}, {
"span": {
"start": [30, 14],
"end": [30, 27]
},
"symbol": "sum_array2",
"targets": []
}, {
"span": {
"start": [31, 5],
"end": [31, 55]
},
"symbol": "print",
"targets": []
}, {
"span": {
"start": [32, 5],
"end": [32, 70]
},
"symbol": "print",
"targets": []
}]
}
}
}