Skip to content

Commit 477f83c

Browse files
authored
Merge pull request github#7746 from hvitved/csharp/remove-legacy-relations
C#: Remove some unused legacy relations from the DB scheme
2 parents 948ebe4 + 51205d6 commit 477f83c

File tree

8 files changed

+8305
-1143
lines changed

8 files changed

+8305
-1143
lines changed

csharp/downgrades/58a680081d22ec56c376539b7cca9521dc38fdbb/old.dbscheme

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

csharp/downgrades/58a680081d22ec56c376539b7cca9521dc38fdbb/semmlecode.csharp.dbscheme

Lines changed: 2098 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: Remove unused legacy relations.
2+
compatibility: backwards

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -166,67 +166,17 @@ compilation_assembly(
166166
int assembly: @assembly ref
167167
)
168168

169-
/*
170-
* External artifacts
171-
*/
172-
173-
externalDefects(
174-
unique int id: @externalDefect,
175-
string queryPath: string ref,
176-
int location: @location ref,
177-
string message: string ref,
178-
float severity: float ref);
179-
180-
externalMetrics(
181-
unique int id: @externalMetric,
182-
string queryPath: string ref,
183-
int location: @location ref,
184-
float value: float ref);
185-
186-
externalData(
187-
int id: @externalDataElement,
188-
string path: string ref,
189-
int column: int ref,
190-
string value: string ref);
191-
192-
snapshotDate(
193-
unique date snapshotDate: date ref);
194-
195169
sourceLocationPrefix(
196170
string prefix: string ref);
197171

198-
/*
199-
* Duplicate code
200-
*/
201-
202-
duplicateCode(
203-
unique int id: @duplication,
204-
string relativePath: string ref,
205-
int equivClass: int ref);
206-
207-
similarCode(
208-
unique int id: @similarity,
209-
string relativePath: string ref,
210-
int equivClass: int ref);
211-
212-
@duplication_or_similarity = @duplication | @similarity
213-
214-
tokens(
215-
int id: @duplication_or_similarity ref,
216-
int offset: int ref,
217-
int beginLine: int ref,
218-
int beginColumn: int ref,
219-
int endLine: int ref,
220-
int endColumn: int ref);
221-
222172
/*
223173
* C# dbscheme
224174
*/
225175

226176
/** ELEMENTS **/
227177

228178
@element = @declaration | @stmt | @expr | @modifier | @attribute | @namespace_declaration
229-
| @using_directive | @type_parameter_constraints | @external_element
179+
| @using_directive | @type_parameter_constraints
230180
| @xmllocatable | @asp_element | @namespace | @preprocessor_directive;
231181

232182
@declaration = @callable | @generic | @assignable | @namespace;
@@ -239,8 +189,6 @@ tokens(
239189

240190
@assignable_with_accessors = @property | @indexer;
241191

242-
@external_element = @externalMetric | @externalDefect | @externalDataElement;
243-
244192
@attributable = @assembly | @field | @parameter | @operator | @method | @constructor
245193
| @destructor | @callable_accessor | @value_or_ref_type | @declaration_with_accessors
246194
| @local_function;

0 commit comments

Comments
 (0)