-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathexpected-edges.schema.json
More file actions
71 lines (71 loc) · 2.27 KB
/
expected-edges.schema.json
File metadata and controls
71 lines (71 loc) · 2.27 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Expected Call Edges Manifest",
"description": "Hand-annotated call edges for resolution precision/recall benchmarks",
"type": "object",
"required": ["language", "edges"],
"properties": {
"language": {
"type": "string",
"description": "Language identifier matching the fixture directory name"
},
"description": {
"type": "string"
},
"edges": {
"type": "array",
"items": {
"type": "object",
"required": ["source", "target", "kind", "mode"],
"properties": {
"source": {
"type": "object",
"required": ["name", "file"],
"properties": {
"name": { "type": "string", "description": "Function/method name" },
"file": { "type": "string", "description": "Filename (basename only)" }
}
},
"target": {
"type": "object",
"required": ["name", "file"],
"properties": {
"name": { "type": "string", "description": "Function/method name" },
"file": { "type": "string", "description": "Filename (basename only)" }
}
},
"kind": {
"type": "string",
"enum": ["calls"],
"description": "Edge kind — currently only 'calls'"
},
"mode": {
"type": "string",
"enum": [
"static",
"receiver-typed",
"interface-dispatched",
"closure",
"re-export",
"dynamic-import",
"class-inheritance",
"same-file",
"constructor",
"callback",
"higher-order",
"trait-dispatch",
"module-function",
"package-function",
"dynamic"
],
"description": "Resolution category — describes the language feature exercised by this edge. 'dynamic' is assigned to edges discovered only by runtime tracing, not hand-annotated."
},
"notes": {
"type": "string",
"description": "Human-readable explanation of why this edge is expected"
}
}
}
}
}
}