Skip to content

Commit 1a9683f

Browse files
committed
Add @top database type
1 parent 6f208e9 commit 1a9683f

File tree

8 files changed

+5048
-0
lines changed

8 files changed

+5048
-0
lines changed

python/downgrades/acf8d3b08ae3cfac8833d16efbfa5a10fef86819/old.dbscheme

Lines changed: 1261 additions & 0 deletions
Large diffs are not rendered by default.

python/downgrades/acf8d3b08ae3cfac8833d16efbfa5a10fef86819/semmlecode.python.dbscheme

Lines changed: 1252 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
description: Add @top type
2+
compatibility: full

python/extractor/semmle/dbscheme.template

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,3 +436,12 @@ py_decorated_object(int object : @py_object ref,
436436
@py_object = @py_cobject | @py_flow_node;
437437

438438
@py_source_element = @py_ast_node | @container;
439+
440+
/** The union of all Python database entities */
441+
@top =
442+
@py_source_element | @py_object | @py_base_var | @location | @py_line | @py_comment |
443+
@py_expr_parent | @py_expr_context |
444+
@py_operator | @py_boolop | @py_cmpop | @py_unaryop |
445+
@py_cmpop_list | @py_alias_list | @py_StringPart_list | @py_comprehension_list | @py_dict_item_list | @py_pattern_list | @py_stmt_list | @py_str_list | @py_type_parameter_list |
446+
@externalDefect | @externalMetric | @externalDataElement | @duplication_or_similarity | @svnentry |
447+
@xmllocatable | @yaml_locatable;

python/ql/lib/semmlecode.python.dbscheme

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,3 +1250,12 @@ py_decorated_object(int object : @py_object ref,
12501250
@py_object = @py_cobject | @py_flow_node;
12511251

12521252
@py_source_element = @py_ast_node | @container;
1253+
1254+
/** The union of all Python database entities */
1255+
@top =
1256+
@py_source_element | @py_object | @py_base_var | @location | @py_line | @py_comment |
1257+
@py_expr_parent | @py_expr_context |
1258+
@py_operator | @py_boolop | @py_cmpop | @py_unaryop |
1259+
@py_cmpop_list | @py_alias_list | @py_StringPart_list | @py_comprehension_list | @py_dict_item_list | @py_pattern_list | @py_stmt_list | @py_str_list | @py_type_parameter_list |
1260+
@externalDefect | @externalMetric | @externalDataElement | @duplication_or_similarity | @svnentry |
1261+
@xmllocatable | @yaml_locatable;

0 commit comments

Comments
 (0)