3
3
/** Files and folders **/
4
4
5
5
@location = @location_default;
6
-
6
+
7
7
locations_default(unique int id: @location_default,
8
8
int file: @file ref,
9
9
int beginLine: int ref,
10
10
int beginColumn: int ref,
11
11
int endLine: int ref,
12
12
int endColumn: int ref
13
13
);
14
-
14
+
15
15
@sourceline = @locatable;
16
-
16
+
17
17
numlines(int element_id: @sourceline ref,
18
18
int num_lines: int ref,
19
19
int num_code: int ref,
20
20
int num_comment: int ref
21
21
);
22
-
22
+
23
23
files(unique int id: @file,
24
24
varchar(900) name: string ref);
25
-
25
+
26
26
folders(unique int id: @folder,
27
27
varchar(900) name: string ref);
28
-
29
-
28
+
29
+
30
30
@container = @folder | @file ;
31
-
32
-
31
+
32
+
33
33
containerparent(int parent: @container ref,
34
34
unique int child: @container ref);
35
35
@@ -39,14 +39,14 @@ duplicateCode(
39
39
unique int id : @duplication,
40
40
varchar(900) relativePath : string ref,
41
41
int equivClass : int ref);
42
-
42
+
43
43
similarCode(
44
44
unique int id : @similarity,
45
45
varchar(900) relativePath : string ref,
46
46
int equivClass : int ref);
47
-
47
+
48
48
@duplication_or_similarity = @duplication | @similarity;
49
-
49
+
50
50
tokens(
51
51
int id : @duplication_or_similarity ref,
52
52
int offset : int ref,
@@ -63,9 +63,9 @@ externalData(
63
63
int column: int ref,
64
64
varchar(900) value : string ref
65
65
);
66
-
66
+
67
67
snapshotDate(unique date snapshotDate : date ref);
68
-
68
+
69
69
sourceLocationPrefix(varchar(900) prefix : string ref);
70
70
71
71
/** Version control data **/
@@ -77,18 +77,18 @@ svnentries(
77
77
date revisionDate : date ref,
78
78
int changeSize : int ref
79
79
);
80
-
80
+
81
81
svnaffectedfiles(
82
82
int id : @svnentry ref,
83
83
int file : @file ref,
84
84
varchar(500) action : string ref
85
85
);
86
-
86
+
87
87
svnentrymsg(
88
88
int id : @svnentry ref,
89
89
varchar(500) message : string ref
90
90
);
91
-
91
+
92
92
svnchurn(
93
93
int commit : @svnentry ref,
94
94
int file : @file ref,
@@ -134,15 +134,15 @@ xml_element_parent_expression(
134
134
135
135
// statements
136
136
#keyset[parent, idx]
137
- stmts (unique int id: @stmt,
137
+ stmts (unique int id: @stmt,
138
138
int kind: int ref,
139
- int parent: @stmt_parent ref,
139
+ int parent: @stmt_parent ref,
140
140
int idx: int ref,
141
141
varchar(900) tostring: string ref);
142
142
143
143
stmt_containers (unique int stmt: @stmt ref,
144
144
int container: @stmt_container ref);
145
-
145
+
146
146
jump_targets (unique int jump: @stmt ref,
147
147
int target: @stmt ref);
148
148
@@ -217,7 +217,7 @@ exprs (unique int id: @expr,
217
217
literals (varchar(900) value: string ref,
218
218
varchar(900) raw: string ref,
219
219
unique int expr: @expr_or_type ref);
220
-
220
+
221
221
enclosing_stmt (unique int expr: @expr_or_type ref,
222
222
int stmt: @stmt ref);
223
223
@@ -445,7 +445,7 @@ case @scope.kind of
445
445
446
446
scopenodes (unique int node: @ast_node ref,
447
447
int scope: @scope ref);
448
-
448
+
449
449
scopenesting (unique int inner: @scope ref,
450
450
int outer: @scope ref);
451
451
@@ -667,7 +667,7 @@ has_asserts_keyword(int node: @predicate_typeexpr ref);
667
667
668
668
@typed_ast_node = @expr | @typeexpr | @function;
669
669
ast_node_type(
670
- unique int node: @typed_ast_node ref,
670
+ unique int node: @typed_ast_node ref,
671
671
int typ: @type ref);
672
672
673
673
declared_function_signature(
@@ -846,15 +846,15 @@ js_parse_errors (unique int id: @js_parse_error,
846
846
int toplevel: @toplevel ref,
847
847
varchar(900) message: string ref,
848
848
varchar(900) line: string ref);
849
-
849
+
850
850
// regular expressions
851
851
#keyset[parent, idx]
852
852
regexpterm (unique int id: @regexpterm,
853
853
int kind: int ref,
854
854
int parent: @regexpparent ref,
855
855
int idx: int ref,
856
856
varchar(900) tostring: string ref);
857
-
857
+
858
858
@regexpparent = @regexpterm | @regexp_literal | @string_literal | @add_expr;
859
859
860
860
case @regexpterm.kind of
@@ -972,7 +972,7 @@ case @json_value.kind of
972
972
// locations
973
973
@ast_node = @toplevel | @stmt | @expr | @property | @typeexpr;
974
974
975
- @locatable = @file
975
+ @locatable = @file
976
976
| @ast_node
977
977
| @comment
978
978
| @line
0 commit comments