2018-02-07 23:20:41 +03:00
|
|
|
{
|
|
|
|
"modules": {
|
|
|
|
"main": {
|
2018-03-05 19:43:32 +03:00
|
|
|
"imports": [],
|
2018-02-07 23:20:41 +03:00
|
|
|
"name": "main",
|
|
|
|
"language": "Python",
|
2018-03-01 22:47:29 +03:00
|
|
|
"declarations": [{
|
|
|
|
"span": {
|
|
|
|
"start": [11, 1],
|
|
|
|
"end": [13, 1]
|
|
|
|
},
|
|
|
|
"kind": "Function",
|
2018-03-05 19:43:32 +03:00
|
|
|
"name": "print_cwd",
|
|
|
|
"module": "main"
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"span": {
|
|
|
|
"start": [14, 1],
|
|
|
|
"end": [17, 1]
|
|
|
|
},
|
|
|
|
"kind": "Function",
|
2018-03-05 19:43:32 +03:00
|
|
|
"name": "create_array",
|
|
|
|
"module": "main"
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"span": {
|
|
|
|
"start": [18, 1],
|
|
|
|
"end": [21, 1]
|
|
|
|
},
|
|
|
|
"kind": "Function",
|
2018-03-05 19:43:32 +03:00
|
|
|
"name": "sum_array",
|
|
|
|
"module": "main"
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"span": {
|
|
|
|
"start": [22, 1],
|
|
|
|
"end": [24, 1]
|
|
|
|
},
|
|
|
|
"kind": "Function",
|
2018-03-05 19:43:32 +03:00
|
|
|
"name": "sum_array2",
|
|
|
|
"module": "main"
|
2018-03-01 22:47:29 +03:00
|
|
|
}],
|
|
|
|
"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]
|
|
|
|
},
|
2018-03-05 19:43:32 +03:00
|
|
|
"symbol": "os.getcwd",
|
|
|
|
"targets": []
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"span": {
|
|
|
|
"start": [15, 9],
|
|
|
|
"end": [15, 31]
|
|
|
|
},
|
2018-03-05 19:43:32 +03:00
|
|
|
"symbol": "np.array",
|
|
|
|
"targets": []
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"span": {
|
|
|
|
"start": [19, 13],
|
|
|
|
"end": [19, 20]
|
|
|
|
},
|
2018-03-05 19:43:32 +03:00
|
|
|
"symbol": "x.sum",
|
|
|
|
"targets": []
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"span": {
|
|
|
|
"start": [23, 12],
|
|
|
|
"end": [23, 19]
|
|
|
|
},
|
2018-03-05 19:43:32 +03:00
|
|
|
"symbol": "x.sum",
|
|
|
|
"targets": []
|
2018-03-01 22:47:29 +03:00
|
|
|
}, {
|
|
|
|
"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": []
|
|
|
|
}]
|
2018-02-07 23:20:41 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|