mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Trim whitespace in dbscheme
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/** Files and folders **/
|
||||
|
||||
@location = @location_default;
|
||||
|
||||
|
||||
locations_default(unique int id: @location_default,
|
||||
int file: @file ref,
|
||||
int beginLine: int ref,
|
||||
@@ -11,25 +11,25 @@ locations_default(unique int id: @location_default,
|
||||
int endLine: int ref,
|
||||
int endColumn: int ref
|
||||
);
|
||||
|
||||
|
||||
@sourceline = @locatable;
|
||||
|
||||
|
||||
numlines(int element_id: @sourceline ref,
|
||||
int num_lines: int ref,
|
||||
int num_code: int ref,
|
||||
int num_comment: int ref
|
||||
);
|
||||
|
||||
|
||||
files(unique int id: @file,
|
||||
varchar(900) name: string ref);
|
||||
|
||||
|
||||
folders(unique int id: @folder,
|
||||
varchar(900) name: string ref);
|
||||
|
||||
|
||||
|
||||
|
||||
@container = @folder | @file ;
|
||||
|
||||
|
||||
|
||||
|
||||
containerparent(int parent: @container ref,
|
||||
unique int child: @container ref);
|
||||
|
||||
@@ -39,14 +39,14 @@ duplicateCode(
|
||||
unique int id : @duplication,
|
||||
varchar(900) relativePath : string ref,
|
||||
int equivClass : int ref);
|
||||
|
||||
|
||||
similarCode(
|
||||
unique int id : @similarity,
|
||||
varchar(900) relativePath : string ref,
|
||||
int equivClass : int ref);
|
||||
|
||||
|
||||
@duplication_or_similarity = @duplication | @similarity;
|
||||
|
||||
|
||||
tokens(
|
||||
int id : @duplication_or_similarity ref,
|
||||
int offset : int ref,
|
||||
@@ -63,9 +63,9 @@ externalData(
|
||||
int column: int ref,
|
||||
varchar(900) value : string ref
|
||||
);
|
||||
|
||||
|
||||
snapshotDate(unique date snapshotDate : date ref);
|
||||
|
||||
|
||||
sourceLocationPrefix(varchar(900) prefix : string ref);
|
||||
|
||||
/** Version control data **/
|
||||
@@ -77,18 +77,18 @@ svnentries(
|
||||
date revisionDate : date ref,
|
||||
int changeSize : int ref
|
||||
);
|
||||
|
||||
|
||||
svnaffectedfiles(
|
||||
int id : @svnentry ref,
|
||||
int file : @file ref,
|
||||
varchar(500) action : string ref
|
||||
);
|
||||
|
||||
|
||||
svnentrymsg(
|
||||
int id : @svnentry ref,
|
||||
varchar(500) message : string ref
|
||||
);
|
||||
|
||||
|
||||
svnchurn(
|
||||
int commit : @svnentry ref,
|
||||
int file : @file ref,
|
||||
@@ -134,15 +134,15 @@ xml_element_parent_expression(
|
||||
|
||||
// statements
|
||||
#keyset[parent, idx]
|
||||
stmts (unique int id: @stmt,
|
||||
stmts (unique int id: @stmt,
|
||||
int kind: int ref,
|
||||
int parent: @stmt_parent ref,
|
||||
int parent: @stmt_parent ref,
|
||||
int idx: int ref,
|
||||
varchar(900) tostring: string ref);
|
||||
|
||||
stmt_containers (unique int stmt: @stmt ref,
|
||||
int container: @stmt_container ref);
|
||||
|
||||
|
||||
jump_targets (unique int jump: @stmt ref,
|
||||
int target: @stmt ref);
|
||||
|
||||
@@ -217,7 +217,7 @@ exprs (unique int id: @expr,
|
||||
literals (varchar(900) value: string ref,
|
||||
varchar(900) raw: string ref,
|
||||
unique int expr: @expr_or_type ref);
|
||||
|
||||
|
||||
enclosing_stmt (unique int expr: @expr_or_type ref,
|
||||
int stmt: @stmt ref);
|
||||
|
||||
@@ -445,7 +445,7 @@ case @scope.kind of
|
||||
|
||||
scopenodes (unique int node: @ast_node ref,
|
||||
int scope: @scope ref);
|
||||
|
||||
|
||||
scopenesting (unique int inner: @scope ref,
|
||||
int outer: @scope ref);
|
||||
|
||||
@@ -667,7 +667,7 @@ has_asserts_keyword(int node: @predicate_typeexpr ref);
|
||||
|
||||
@typed_ast_node = @expr | @typeexpr | @function;
|
||||
ast_node_type(
|
||||
unique int node: @typed_ast_node ref,
|
||||
unique int node: @typed_ast_node ref,
|
||||
int typ: @type ref);
|
||||
|
||||
declared_function_signature(
|
||||
@@ -846,7 +846,7 @@ js_parse_errors (unique int id: @js_parse_error,
|
||||
int toplevel: @toplevel ref,
|
||||
varchar(900) message: string ref,
|
||||
varchar(900) line: string ref);
|
||||
|
||||
|
||||
// regular expressions
|
||||
#keyset[parent, idx]
|
||||
regexpterm (unique int id: @regexpterm,
|
||||
@@ -854,7 +854,7 @@ regexpterm (unique int id: @regexpterm,
|
||||
int parent: @regexpparent ref,
|
||||
int idx: int ref,
|
||||
varchar(900) tostring: string ref);
|
||||
|
||||
|
||||
@regexpparent = @regexpterm | @regexp_literal | @string_literal | @add_expr;
|
||||
|
||||
case @regexpterm.kind of
|
||||
@@ -972,7 +972,7 @@ case @json_value.kind of
|
||||
// locations
|
||||
@ast_node = @toplevel | @stmt | @expr | @property | @typeexpr;
|
||||
|
||||
@locatable = @file
|
||||
@locatable = @file
|
||||
| @ast_node
|
||||
| @comment
|
||||
| @line
|
||||
|
||||
Reference in New Issue
Block a user