mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Add DB upgrade and downgrade scripts.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class AnnotatedElement extends @cil_has_type_annotation {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class Field extends @cil_field {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from AnnotatedElement element, int annotation
|
||||
where cil_type_annotation(element, annotation) and not element instanceof Field
|
||||
select element, annotation
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
class AnnotatedElement extends @has_type_annotation {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class Field extends @field {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from AnnotatedElement element, int annotation
|
||||
where type_annotation(element, annotation) and not element instanceof Field
|
||||
select element, annotation
|
||||
@@ -0,0 +1,4 @@
|
||||
description: Remove CIL fields as entities that can have type annotations and remove field type annotations.
|
||||
compatibility: backwards
|
||||
cil_type_annotation.rel: run cil_type_annotation.qlo
|
||||
type_annotation.rel: run type_annotation.qlo
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
description: Add CIL fields as entities that can have type annotations.
|
||||
compatibility: backwards
|
||||
Reference in New Issue
Block a user