1
1
// CodeQL database schema for QL
2
2
// Automatically generated from the tree-sitter grammar; do not edit
3
3
4
- @location = @location_default
5
-
4
+ /*- Files and folders -*/
5
+
6
+ /**
7
+ * The location of an element.
8
+ * The location spans column `startcolumn` of line `startline` to
9
+ * column `endcolumn` of line `endline` in file `file`.
10
+ * For more information, see
11
+ * [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
12
+ */
6
13
locations_default(
7
14
unique int id: @location_default,
8
15
int file: @file ref,
9
- int start_line : int ref,
10
- int start_column : int ref,
11
- int end_line : int ref,
12
- int end_column : int ref
16
+ int beginLine : int ref,
17
+ int beginColumn : int ref,
18
+ int endLine : int ref,
19
+ int endColumn : int ref
13
20
);
14
21
15
22
files(
@@ -29,9 +36,14 @@ containerparent(
29
36
unique int child: @container ref
30
37
);
31
38
32
- sourceLocationPrefix(
33
- string prefix: string ref
34
- );
39
+ /*- Source location prefix -*/
40
+
41
+ /**
42
+ * The source location of the snapshot.
43
+ */
44
+ sourceLocationPrefix(string prefix : string ref);
45
+
46
+ /*- Diagnostic messages -*/
35
47
36
48
diagnostics(
37
49
unique int id: @diagnostic,
@@ -42,14 +54,15 @@ diagnostics(
42
54
int location: @location_default ref
43
55
);
44
56
57
+ /*- Diagnostic messages: severity -*/
58
+
45
59
case @diagnostic.severity of
46
60
10 = @diagnostic_debug
47
61
| 20 = @diagnostic_info
48
62
| 30 = @diagnostic_warning
49
63
| 40 = @diagnostic_error
50
64
;
51
-
52
-
65
+ /*- QL dbscheme -*/
53
66
@ql_add_expr_left_type = @ql_add_expr | @ql_aggregate | @ql_call_or_unqual_agg_expr | @ql_comp_term | @ql_conjunction | @ql_disjunction | @ql_expr_annotation | @ql_if_term | @ql_implication | @ql_in_expr | @ql_instance_of | @ql_literal | @ql_mul_expr | @ql_negation | @ql_par_expr | @ql_prefix_cast | @ql_qualified_expr | @ql_quantified | @ql_range | @ql_set_literal | @ql_special_call | @ql_super_ref | @ql_unary_expr | @ql_variable
54
67
55
68
@ql_add_expr_right_type = @ql_add_expr | @ql_aggregate | @ql_call_or_unqual_agg_expr | @ql_comp_term | @ql_conjunction | @ql_disjunction | @ql_expr_annotation | @ql_if_term | @ql_implication | @ql_in_expr | @ql_instance_of | @ql_literal | @ql_mul_expr | @ql_negation | @ql_par_expr | @ql_prefix_cast | @ql_qualified_expr | @ql_quantified | @ql_range | @ql_set_literal | @ql_special_call | @ql_super_ref | @ql_unary_expr | @ql_variable
@@ -926,9 +939,10 @@ ql_ast_node_info(
926
939
unique int node: @ql_ast_node ref,
927
940
int parent: @ql_ast_node_parent ref,
928
941
int parent_index: int ref,
929
- int loc: @location ref
942
+ int loc: @location_default ref
930
943
);
931
944
945
+ /*- Dbscheme dbscheme -*/
932
946
dbscheme_annotation_args_annotation(
933
947
unique int dbscheme_annotation: @dbscheme_annotation ref,
934
948
unique int args_annotation: @dbscheme_args_annotation ref
@@ -1112,9 +1126,10 @@ dbscheme_ast_node_info(
1112
1126
unique int node: @dbscheme_ast_node ref,
1113
1127
int parent: @dbscheme_ast_node_parent ref,
1114
1128
int parent_index: int ref,
1115
- int loc: @location ref
1129
+ int loc: @location_default ref
1116
1130
);
1117
1131
1132
+ /*- Yaml dbscheme -*/
1118
1133
yaml_comment_def(
1119
1134
unique int id: @yaml_comment,
1120
1135
int child: @yaml_token_value ref
@@ -1184,9 +1199,10 @@ yaml_ast_node_info(
1184
1199
unique int node: @yaml_ast_node ref,
1185
1200
int parent: @yaml_ast_node_parent ref,
1186
1201
int parent_index: int ref,
1187
- int loc: @location ref
1202
+ int loc: @location_default ref
1188
1203
);
1189
1204
1205
+ /*- Blame dbscheme -*/
1190
1206
#keyset[blame_blame_entry, index]
1191
1207
blame_blame_entry_line(
1192
1208
int blame_blame_entry: @blame_blame_entry ref,
@@ -1246,9 +1262,10 @@ blame_ast_node_info(
1246
1262
unique int node: @blame_ast_node ref,
1247
1263
int parent: @blame_ast_node_parent ref,
1248
1264
int parent_index: int ref,
1249
- int loc: @location ref
1265
+ int loc: @location_default ref
1250
1266
);
1251
1267
1268
+ /*- JSON dbscheme -*/
1252
1269
#keyset[json_array, index]
1253
1270
json_array_child(
1254
1271
int json_array: @json_array ref,
@@ -1327,6 +1344,6 @@ json_ast_node_info(
1327
1344
unique int node: @json_ast_node ref,
1328
1345
int parent: @json_ast_node_parent ref,
1329
1346
int parent_index: int ref,
1330
- int loc: @location ref
1347
+ int loc: @location_default ref
1331
1348
);
1332
1349
0 commit comments