mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Add upgrade and downgrade scripts.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
||||
class Parameter extends @parameter {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class TypeOrRef extends @type_or_ref {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
class Parameterizable extends @parameterizable {
|
||||
string toString() { none() }
|
||||
}
|
||||
|
||||
from
|
||||
Parameter p, string name, TypeOrRef typeId, int index, int mode, Parameterizable parentId,
|
||||
Parameter unboundId, int updatedMode
|
||||
where
|
||||
params(p, name, typeId, index, mode, parentId, unboundId) and
|
||||
if mode = 6 then updatedMode = 0 else updatedMode = mode
|
||||
select p, name, typeId, index, updatedMode, parentId, unboundId
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
description: Extract `ref readonly` parameters as having `mode` 0 in the params table.
|
||||
compatibility: full
|
||||
params.rel: run params.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: Extract `ref readonly` parameters as having `mode` 6 in the params table.
|
||||
compatibility: backwards
|
||||
Reference in New Issue
Block a user