aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/source0.c.json
blob: 5eea7aba9ede884e4f04e71b97cdaf060e9ddc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
	"definitions": [
		{
			"kind": "function",
			"name": "close",
			"type": "int ()",
			"body": {
				"file": "source0.c",
				"start_line": 14,
				"end_line": 17
			},
			"comment": {}
		},
		{
			"kind": "function",
			"name": "function_with_comment_in_header",
			"type": "void ()",
			"body": {
				"file": "source0.c",
				"start_line": 19,
				"end_line": 22
			},
			"comment": {},
			"refs": [
				{
					"kind": "calls",
					"entity_kind": "function",
					"name": "same_name_in_several_files",
					"line": 21
				}
			]
		},
		{
			"kind": "function",
			"name": "open",
			"type": "int ()",
			"body": {
				"file": "source0.c",
				"start_line": 6,
				"end_line": 12
			},
			"comment": {
				"file": "source0.c",
				"start_line": 6,
				"end_line": 8
			}
		}
	]
}